fix clippy

This commit is contained in:
Evan Almloff 2023-07-10 19:34:45 -05:00
parent 39ec5f498c
commit 0636e94f37

View file

@ -124,10 +124,7 @@ pub fn server(args: proc_macro::TokenStream, s: TokenStream) -> TokenStream {
.from_case(Case::Snake)
.to_case(Case::UpperCamel)
.convert(&sig.ident.to_string());
args.struct_name = Some(Ident::new(
&format!("{}", upper_cammel_case_name),
sig.ident.span(),
));
args.struct_name = Some(Ident::new(&upper_cammel_case_name, sig.ident.span()));
}
let struct_name = args.struct_name.as_ref().unwrap();
match server_macro_impl(