misc clippy fixes

the trivial ones ;)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2022-02-08 14:57:16 +01:00
parent bb9e503964
commit dcf5a0f62d
32 changed files with 74 additions and 84 deletions

View File

@ -719,7 +719,7 @@ impl DiskState {
components.push(component);
}
let mut bucket = match Bucket::filter_mut(buckets, &bucket_type, &components) {
let bucket = match Bucket::filter_mut(buckets, &bucket_type, &components) {
Some(bucket) => bucket,
None => bail!(
"bucket/component path not found: {}/{}/{}",
@ -732,7 +732,7 @@ impl DiskState {
// bucket found, check mount
let mountpoint = self
.filesystems
.ensure_mounted(&mut bucket)
.ensure_mounted(bucket)
.map_err(|err| {
format_err!(
"mounting '{}/{}/{}' failed: {}",