Skip to content

Commit

Permalink
kernel_function: Allow unused_macro_rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed May 15, 2022
1 parent 157ea68 commit 0c19418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ macro_rules! try_sys {
/// // instead of
/// let ret = f(arg);
/// ```
#[allow(unused_macro_rules)]
macro_rules! kernel_function {
($f:ident()) => {
$crate::arch::switch::kernel_function0($f)
Expand Down

0 comments on commit 0c19418

Please sign in to comment.