mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
prefsgenerator not in workspace but still needs formatting
This commit is contained in:
parent
c411ee881a
commit
508c610339
1 changed files with 6 additions and 6 deletions
|
|
@ -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! {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue