From b21851cc5cc84345f529a11388c16d05893d6998 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 11 Sep 2019 13:57:58 +0200 Subject: [PATCH] clippy: collapse identical if branches Signed-off-by: Wolfgang Bumiller --- src/backup/datastore.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs index 61b3af03..0a5bfef5 100644 --- a/src/backup/datastore.rs +++ b/src/backup/datastore.rs @@ -191,9 +191,7 @@ impl DataStore { for entry in walker.filter_entry(|e| !is_hidden(e)) { let path = entry?.into_path(); if let Some(ext) = path.extension() { - if ext == "fidx" { - list.push(path); - } else if ext == "didx" { + if ext == "fidx" || ext == "didx"{ list.push(path); } }