aboutsummaryrefslogtreecommitdiff
path: root/bin/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/src/config.rs')
-rw-r--r--bin/src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/src/config.rs b/bin/src/config.rs
index b6310e6..572ddde 100644
--- a/bin/src/config.rs
+++ b/bin/src/config.rs
@@ -334,11 +334,11 @@ fn vfs(files: Vec<PathBuf>) -> Result<ReadOnlyVfs, ConfigErr> {
334 Ok(vfs) 334 Ok(vfs)
335} 335}
336 336
337fn lints(conf_path: &PathBuf) -> Result<LintMap, ConfigErr> { 337fn lints(conf_path: &Path) -> Result<LintMap, ConfigErr> {
338 let config_file = ConfFile::discover(conf_path)?; 338 let config_file = ConfFile::discover(conf_path)?;
339 Ok(utils::lint_map_of( 339 Ok(utils::lint_map_of(
340 (&*LINTS) 340 (&*LINTS)
341 .into_iter() 341 .iter()
342 .filter(|l| !config_file.disabled.iter().any(|check| check == l.name())) 342 .filter(|l| !config_file.disabled.iter().any(|check| check == l.name()))
343 .cloned() 343 .cloned()
344 .collect::<Vec<_>>() 344 .collect::<Vec<_>>()