tree wide: some stylistic clippy fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht committed 2022-04-11 08:14:28 +02:00
1 parent b22d785c18
commit 12558e0dde
9 files changed
+25 -28

No files matched your search

+2 -3
View File
@@ -105,9 +105,8 @@ fn worker_task_abort() -> Result<(), Error> {
});
let data = errmsg.lock().unwrap();
match *data {
Some(ref err) => bail!("Error: {}", err),
None => {}
if let Some(ref err) = *data {
bail!("Error: {}", err)
}
Ok(())