mirror of
https://github.com/trussed-dev/littlefs2.git
synced 2026-06-20 04:16:32 -07:00
Fix clippy warning
This commit is contained in:
committed by
sosthene-nitrokey
parent
04b3519fee
commit
47ef5f5859
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user