clippy: is_some/none/ok/err/empty

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-20 16:23:54 +01:00
parent 397356096a
commit 3984a5fd77
22 changed files with 38 additions and 42 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ pub fn create_sync_job(
let (mut config, _digest) = sync::config()?;
if let Some(_) = config.sections.get(&sync_job.id) {
if config.sections.get(&sync_job.id).is_some() {
bail!("job '{}' already exists.", sync_job.id);
}