diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-04-02 18:02:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 18:02:22 +0200 |
commit | b4e68d085da69e68529720bd3faf1dd3ad369a74 (patch) | |
tree | f8bf9f944047981d92ec02b08f504e8a9dfc4112 /src-tauri/src/repair_and_verify | |
parent | 8070b7cad817058b922316a7baea42c38b77055f (diff) | |
download | FlightCore-b4e68d085da69e68529720bd3faf1dd3ad369a74.tar.gz FlightCore-b4e68d085da69e68529720bd3faf1dd3ad369a74.zip |
fix: Another set of various clippy fixes (#246)
* fix: Remove unnecessary clone
* fix: Remove redundant field name in struct init
* fix: Single-char string constant used as pattern
* fix: calling `push_str()` using a single-character string literal
* fix: this pattern reimplements `Option::unwrap_or`
* fix: Remove unnecessary borrow
* fix: Remove useless use of `format!`
* fix: called `inspect(..).for_each(..)` on an `Iterator`
* fix: Formatting
Diffstat (limited to 'src-tauri/src/repair_and_verify')
-rw-r--r-- | src-tauri/src/repair_and_verify/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/repair_and_verify/mod.rs b/src-tauri/src/repair_and_verify/mod.rs index 31b31040..b3dbe3b2 100644 --- a/src-tauri/src/repair_and_verify/mod.rs +++ b/src-tauri/src/repair_and_verify/mod.rs @@ -51,7 +51,7 @@ pub fn clean_up_download_folder( // dbg!(download_dir_contents); let mut count = 0; - download_dir_contents.inspect(|_| count += 1).for_each(drop); + download_dir_contents.for_each(|_| count += 1); if count > 0 && !force { return Err(anyhow!("Folder not empty, not deleting")); |