Skip to content

Commit

Permalink
chore(starknet_os_proc_macros): run rustfmt
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware committed Jan 15, 2025
1 parent dbcb9f1 commit cb23fca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/starknet_os_proc_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ pub fn cairo_type_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStr
let field_names_read = fields.named.iter().map(|f| &f.ident);
let field_names_write = field_names_read.clone();
let n_fields = field_names_read.clone().count();
let field_values = field_names_read.clone().enumerate().map(|(index, field_name)| {
quote! {
let #field_name = vm.get_integer((address + #index)?)?.into_owned();
}
});
let field_values =
field_names_read.clone().enumerate().map(|(index, field_name)| {
quote! {
let #field_name = vm.get_integer((address + #index)?)?.into_owned();
}
});

quote! {
impl CairoType for #struct_ident {
Expand Down

0 comments on commit cb23fca

Please sign in to comment.