Fix clippy warning

This commit is contained in:
Sosthène Guédon
2023-11-15 15:09:52 +01:00
committed by sosthene-nitrokey
parent 04b3519fee
commit 47ef5f5859
+1 -1
View File
@@ -241,7 +241,7 @@ impl<Storage: driver::Storage> Filesystem<'_, Storage> {
// TODO: check if this is equivalent to `is_formatted`.
pub fn is_mountable(storage: &mut Storage) -> bool {
let alloc = &mut Allocation::new();
matches!(Filesystem::mount(alloc, storage), Ok(_))
Filesystem::mount(alloc, storage).is_ok()
}
// Can BorrowMut be implemented "unsafely" instead?