From 0636e94f37e754878cc4bbb40ceef46a98e70946 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 10 Jul 2023 19:34:45 -0500 Subject: [PATCH] fix clippy --- packages/fullstack/server-macro/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/fullstack/server-macro/src/lib.rs b/packages/fullstack/server-macro/src/lib.rs index 7cdf3ad61..a0c4cbb39 100644 --- a/packages/fullstack/server-macro/src/lib.rs +++ b/packages/fullstack/server-macro/src/lib.rs @@ -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(