From 47ef5f5859c7dcfbcb7fbadbe578c0765981a924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 14 Nov 2023 14:56:31 +0100 Subject: [PATCH] Fix clippy warning --- src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?