summaryrefslogtreecommitdiff
path: root/src/sys/statfs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/statfs.rs')
-rw-r--r--src/sys/statfs.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs
index 8d2b283b..a1c1aaa9 100644
--- a/src/sys/statfs.rs
+++ b/src/sys/statfs.rs
@@ -705,6 +705,8 @@ mod test {
assert_fs_equals(fs, vfs);
}
+ // The cast is not unnecessary on all platforms.
+ #[allow(clippy::unnecessary_cast)]
fn assert_fs_equals(fs: Statfs, vfs: Statvfs) {
assert_eq!(fs.files() as u64, vfs.files() as u64);
assert_eq!(fs.blocks() as u64, vfs.blocks() as u64);
@@ -752,6 +754,8 @@ mod test {
assert_fs_equals_strict(fs.unwrap(), vfs.unwrap())
}
+ // The cast is not unnecessary on all platforms.
+ #[allow(clippy::unnecessary_cast)]
fn assert_fs_equals_strict(fs: Statfs, vfs: Statvfs) {
assert_eq!(fs.files_free() as u64, vfs.files_free() as u64);
assert_eq!(fs.blocks_free() as u64, vfs.blocks_free() as u64);