on master help sign in
chore: fix clippy linting
commit28cb89eadb67b6526b026105919a772ce8e726a3 authorAlexis (Poliorcetics) Bourget <alexis.bourget@gmail.com> dateSat 8 Oct 2022, 20:03 (4 years ago) parent65febe0
1 file changed+2−3
xtask/src/themelint.rs+2−3
xtask/src/themelint.rs+2−3
@@ -171,7 +171,7 @@ pub fn lint(file: String) -> Result<(), DynError> {
171171 let message = m.replace("$THEME", theme.as_str());
172172 println!("{}", message);
173173 });
174− Err(format!("{} has issues", file.clone().as_str()).into())
174+ Err(format!("{} has issues", file).into())
175175 } else {
176176 Ok(())
177177 }
@@ -183,8 +183,7 @@ pub fn lint_all() -> Result<(), DynError> {
183183 let ok_files_count = files
184184 .into_iter()
185185 .filter_map(|path| lint(path.replace(".toml", "")).ok())
186− .collect::<Vec<()>>()
187− .len();
186+ .count();
188187
189188 if files_count != ok_files_count {
190189 Err(format!(