Skip to content

Commit b722564

Browse files
committed
Use reason specifier in allow
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 9cc5fc5 commit b722564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl BlkidDevno {
2020

2121
/// Create a `BlkidDevno` from major and minor numbers.
2222
pub fn from_device_numbers(major: libc::c_uint, minor: libc::c_uint) -> Self {
23-
#[allow(unused_unsafe)] // No longer unsafe in libc 0.2.133
23+
#[allow(unused_unsafe, reason = "No longer unsafe in libc 0.2.133")]
2424
BlkidDevno(unsafe { libc::makedev(major, minor) })
2525
}
2626

0 commit comments

Comments
 (0)