diff options
author | Alexis (Poliorcetics) Bourget | 2022-10-08 18:03:22 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-10-11 06:47:11 +0000 |
commit | 28cb89eadb67b6526b026105919a772ce8e726a3 (patch) | |
tree | 387195226be0d6532e6ebee90c23853aa6724480 | |
parent | 65febe0cf40807b446722fb402c1cfa6c983299a (diff) |
chore: fix clippy linting
-rw-r--r-- | xtask/src/themelint.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xtask/src/themelint.rs b/xtask/src/themelint.rs index 26d1cb04..06dfae40 100644 --- a/xtask/src/themelint.rs +++ b/xtask/src/themelint.rs @@ -171,7 +171,7 @@ pub fn lint(file: String) -> Result<(), DynError> { let message = m.replace("$THEME", theme.as_str()); println!("{}", message); }); - Err(format!("{} has issues", file.clone().as_str()).into()) + Err(format!("{} has issues", file).into()) } else { Ok(()) } @@ -183,8 +183,7 @@ pub fn lint_all() -> Result<(), DynError> { let ok_files_count = files .into_iter() .filter_map(|path| lint(path.replace(".toml", "")).ok()) - .collect::<Vec<()>>() - .len(); + .count(); if files_count != ok_files_count { Err(format!( |