tree-wide: is_ok/is_err()

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-12-30 15:01:31 +01:00
parent 3afecb8409
commit 6f1c26b083
3 changed files with 4 additions and 4 deletions

View File

@ -405,7 +405,7 @@ impl DiskState {
mountpoint: None,
size,
});
if let Ok(_) = filesystems.ensure_mounted(&mut dfs_bucket) {
if filesystems.ensure_mounted(&mut dfs_bucket).is_ok() {
// mount succeeded, add bucket and skip any other checks for the disk
info!(
"drive '{}' ('{}', '{}') contains fs directly ({}B)",