We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d5e734 + 9a76320 commit c3a7bf8Copy full SHA for c3a7bf8
1 file changed
src/lib.rs
@@ -300,6 +300,7 @@ impl LoopDevice {
300
/// an IO error.
301
#[allow(clippy::unnecessary_cast)]
302
pub fn major(&self) -> io::Result<u32> {
303
+ #[allow(unused_unsafe)]
304
self.device
305
.metadata()
306
.map(|m| unsafe { libc::major(m.rdev()) })
@@ -314,6 +315,7 @@ impl LoopDevice {
314
315
316
317
pub fn minor(&self) -> io::Result<u32> {
318
319
320
321
.map(|m| unsafe { libc::minor(m.rdev()) })
0 commit comments