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

@ -243,7 +243,7 @@ fn unload(
if let Some(to_slot) = status.find_free_slot(false) {
sg_pt_changer::unload(&mut file, to_slot, drivenum)?;
return Ok(());
Ok(())
} else {
bail!("Drive '{}' unload failure - no free slot", drivenum);
}