From 96345d7a4a22999362cc1e475b9ebdb0e1378157 Mon Sep 17 00:00:00 2001 From: Skye Date: Wed, 21 Sep 2022 20:07:15 +0900 Subject: [PATCH] stupid bug --- uwurandom-proc-macros/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/uwurandom-proc-macros/src/lib.rs b/uwurandom-proc-macros/src/lib.rs index 0f9e417..f9ad2a1 100644 --- a/uwurandom-proc-macros/src/lib.rs +++ b/uwurandom-proc-macros/src/lib.rs @@ -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(), )