Skip to content

Commit

Permalink
Fix dead_code in rust KParamGuard.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Behrens <me@kloenk.de>
  • Loading branch information
kloenk committed Jul 12, 2021
1 parent efda5a1 commit e2dbf35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ impl ThisModule {
/// Scoped lock on the kernel parameters of [`ThisModule`].
///
/// Lock will be released when this struct is dropped.
#[allow(dead_code)]
pub struct KParamGuard<'a> {
this_module: &'a ThisModule,
}
Expand Down

0 comments on commit e2dbf35

Please sign in to comment.