tree wide: some stylistic clippy fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2022-04-10 18:33:32 +02:00
parent b22d785c18
commit 12558e0dde
9 changed files with 25 additions and 28 deletions

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(())