mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
chore: fix clippy linting
This commit is contained in:
parent
65febe0cf4
commit
28cb89eadb
@ -171,7 +171,7 @@ pub fn lint(file: String) -> Result<(), DynError> {
|
|||||||
let message = m.replace("$THEME", theme.as_str());
|
let message = m.replace("$THEME", theme.as_str());
|
||||||
println!("{}", message);
|
println!("{}", message);
|
||||||
});
|
});
|
||||||
Err(format!("{} has issues", file.clone().as_str()).into())
|
Err(format!("{} has issues", file).into())
|
||||||
} else {
|
} else {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@ -183,8 +183,7 @@ pub fn lint_all() -> Result<(), DynError> {
|
|||||||
let ok_files_count = files
|
let ok_files_count = files
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|path| lint(path.replace(".toml", "")).ok())
|
.filter_map(|path| lint(path.replace(".toml", "")).ok())
|
||||||
.collect::<Vec<()>>()
|
.count();
|
||||||
.len();
|
|
||||||
|
|
||||||
if files_count != ok_files_count {
|
if files_count != ok_files_count {
|
||||||
Err(format!(
|
Err(format!(
|
||||||
|
Loading…
Reference in New Issue
Block a user