aports/community/below/fix-sudotest.patch
2022-10-26 01:32:45 +02:00

22 lines
714 B
Diff

Fixes the following error:
error[E0308]: mismatched types
--> below/btrfs/src/btrfs_api/sudotest.rs:49:40
|
49 | statfs.filesystem_type() == FsType(libc::BTRFS_SUPER_MAGIC)
| ------ ^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i64`
| |
| arguments to this struct are incorrect
--- a/below/btrfs/src/btrfs_api/sudotest.rs
+++ b/below/btrfs/src/btrfs_api/sudotest.rs
@@ -46,7 +46,7 @@
}
};
- statfs.filesystem_type() == FsType(libc::BTRFS_SUPER_MAGIC)
+ statfs.filesystem_type() == FsType(libc::BTRFS_SUPER_MAGIC.try_into().unwrap())
}
#[test]