Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgunozerk committed Feb 17, 2025
1 parent a2c7f73 commit 544354d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/utils/pausable-macros/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, FnArg, ItemFn, PatType, Type};

pub fn generate_pause_check(item: TokenStream, check_fn: &str, macro_name: &str) -> TokenStream {
pub fn generate_pause_check(item: TokenStream, check_fn: &str) -> TokenStream {
let input_fn = parse_macro_input!(item as ItemFn);
let (env_ident, is_ref) = check_env_arg(&input_fn);

Expand Down
4 changes: 2 additions & 2 deletions contracts/utils/pausable-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mod helper;
/// ```
#[proc_macro_attribute]
pub fn when_not_paused(_attr: TokenStream, item: TokenStream) -> TokenStream {
generate_pause_check(item, "when_not_paused", "when_not_paused")
generate_pause_check(item, "when_not_paused")
}

/// Adds a pause check at the beginning of the function that ensures the
Expand All @@ -51,5 +51,5 @@ pub fn when_not_paused(_attr: TokenStream, item: TokenStream) -> TokenStream {
/// ```
#[proc_macro_attribute]
pub fn when_paused(_attr: TokenStream, item: TokenStream) -> TokenStream {
generate_pause_check(item, "when_paused", "when_paused")
generate_pause_check(item, "when_paused")
}

0 comments on commit 544354d

Please sign in to comment.