mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
21 lines
714 B
Diff
21 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]
|