Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Feb 29, 2024
1 parent a6382c4 commit 930cb15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion noir/noir-repo/aztec_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,13 @@ fn transform_module(
}
}

let has_initializer = module.functions.iter().any(|func| func.def.attributes.secondary.iter().any(|attr| is_custom_attribute(&attr, "aztec(initializer)")));
let has_initializer = module.functions.iter().any(|func| {
func.def
.attributes
.secondary
.iter()
.any(|attr| is_custom_attribute(&attr, "aztec(initializer)"))
});

for func in module.functions.iter_mut() {
let mut is_private = false;
Expand Down

0 comments on commit 930cb15

Please sign in to comment.