mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix clippy
This commit is contained in:
parent
39ec5f498c
commit
0636e94f37
1 changed files with 1 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue