Skip to content

Commit

Permalink
Remove obsolete allow
Browse files Browse the repository at this point in the history
The lowest version of libc that devicemapper can use is 0.2.155. The
makedev function is no longer unsafe in any version of libc that
devicemapper can depend on transitively.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 5, 2024
1 parent 8b262df commit d05c1b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ impl From<Device> for dev_t {
)
}
#[cfg(not(target_os = "android"))]
#[allow(unused_unsafe)] // No longer unsafe in libc 0.2.133.
unsafe {
makedev(dev.major, dev.minor)
}
makedev(dev.major, dev.minor)
}
}

Expand Down

0 comments on commit d05c1b0

Please sign in to comment.