Skip to content

Commit

Permalink
remove unnecessary filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgunozerk committed Feb 17, 2025
1 parent 62a8ecd commit a2c7f73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/utils/pausable-macros/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ pub fn generate_pause_check(item: TokenStream, check_fn: &str, macro_name: &str)
let fn_vis = &input_fn.vis;
let fn_sig = &input_fn.sig;
let fn_block = &input_fn.block;
// Filter out the current macro from attributes
let fn_attrs: Vec<_> =
input_fn.attrs.iter().filter(|attr| !attr.path().is_ident(macro_name)).collect();
let fn_attrs = &input_fn.attrs;

let env_arg = if is_ref {
quote! { #env_ident }
Expand Down

0 comments on commit a2c7f73

Please sign in to comment.