prefsgenerator not in workspace but still needs formatting

This commit is contained in:
bunnie 2024-01-15 01:04:36 +08:00
parent c411ee881a
commit 508c610339

View file

@ -70,13 +70,13 @@ pub fn getter_setter(input: TokenStream) -> TokenStream {
rw_methods.extend(read); rw_methods.extend(read);
} }
let ident_map: Vec<Ident> = named.iter().map(|field| { let ident_map: Vec<Ident> =
field.ident.as_ref().unwrap().clone() named.iter().map(|field| field.ident.as_ref().unwrap().clone()).collect();
}).collect();
let ident_fn_calls: Vec<Ident> = named.iter().map(|field| { let ident_fn_calls: Vec<Ident> = named
format_ident!("{}_or_default", field.ident.as_ref().unwrap().clone()) .iter()
}).collect(); .map(|field| format_ident!("{}_or_default", field.ident.as_ref().unwrap().clone()))
.collect();
// create the "all" method // create the "all" method
let all = quote! { let all = quote! {