tree wide: some stylistic clippy fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
1 parent
b22d785c18
commit
12558e0dde
9 files changed
+25
-28
No files matched your search
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user