Skip to content

Commit

Permalink
Map to single char in baked_exporter.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 16, 2023
1 parent 3652ac9 commit 924618c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions provider/datagen/src/baked_exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,7 @@ impl BakedExporter {
let anchor = proc_macro2::Ident::new(
&first_locale
.chars()
.flat_map(|ch| {
if ch == '-' {
['_'].into_iter().chain(None)
} else {
[ch.to_ascii_uppercase()].into_iter().chain(None)
}
})
.map(|ch| if ch == '-' { '_' } else { ch })
.collect::<String>(),
proc_macro2::Span::call_site(),
);
Expand Down

0 comments on commit 924618c

Please sign in to comment.