diff --git a/src/fs.rs b/src/fs.rs index 1216d35d..7c78fd9c 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -241,7 +241,7 @@ impl 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?