stupid bug
This commit is contained in:
parent
12536c2d5c
commit
96345d7a4a
1 changed files with 5 additions and 5 deletions
|
@ -80,11 +80,11 @@ pub fn gen_fsm(item: TokenStream) -> TokenStream {
|
|||
fn to_ident(name: &str) -> Ident {
|
||||
Ident::new(
|
||||
&name
|
||||
.replace(';', " semicolon") // Sanitize ident-unsafe characters
|
||||
.replace('!', " exclamation")
|
||||
.replace(',', " comma")
|
||||
.replace('.', " period") // I'm not calling it a full stop
|
||||
.replace(' ', " space")
|
||||
.replace(' ', " space ")
|
||||
.replace(';', " semicolon ") // Sanitize ident-unsafe characters
|
||||
.replace('!', " exclamation ")
|
||||
.replace(',', " comma ")
|
||||
.replace('.', " period ") // I'm not calling it a full stop
|
||||
.to_case(Case::Pascal),
|
||||
Span::call_site().into(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue