Skip to content

Commit

Permalink
genenums: add note for when intersperse is stabilised
Browse files Browse the repository at this point in the history
  • Loading branch information
adjabaev committed Sep 3, 2024
1 parent 798a82a commit 59a793f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/genenums/src/generators/java.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public enum {} {{
auto_gen_comment, package, enum_name
);

// Todo: Consider using https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.intersperse (ONCE STABLE) to insert the commas to avoid needing this special case.
for value in values.iter() {
result.push_str(" ");
result.push_str(&value.to_case(Case::UpperSnake));
Expand Down

0 comments on commit 59a793f

Please sign in to comment.