Skip to content

Commit 7514251

Browse files
committed
Fix dead_code in rust KParamGuard.
Signed-off-by: Finn Behrens <me@kloenk.de>
1 parent 7b00809 commit 7514251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/kernel/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ impl ThisModule {
146146
/// Scoped lock on the kernel parameters of [`ThisModule`].
147147
///
148148
/// Lock will be released when this struct is dropped.
149+
#[allow(dead_code)]
149150
pub struct KParamGuard<'a> {
150151
this_module: &'a ThisModule,
151152
}

0 commit comments

Comments
 (0)