Skip to content

Commit 34bfd3c

Browse files
committed
refactor: add feature gate for set_flags method
clippy complain set_flags is unsed when disable io-uring feature
1 parent a37dd46 commit 34bfd3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compio-driver/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ impl Entry {
353353
}
354354
}
355355

356+
#[cfg(all(target_os = "linux", feature = "io-uring"))]
357+
// this method only used by in io-uring driver
356358
pub(crate) fn set_flags(&mut self, flags: u32) {
357359
self.flags = flags;
358360
}

0 commit comments

Comments
 (0)