aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs
index a3f04d7..161dcab 100644
--- a/bin/src/main.rs
+++ b/bin/src/main.rs
@@ -21,14 +21,14 @@ fn _main() -> Result<(), StatixErr> {
21 let vfs = lint_config.vfs()?; 21 let vfs = lint_config.vfs()?;
22 let (reports, errors): (Vec<_>, Vec<_>) = 22 let (reports, errors): (Vec<_>, Vec<_>) =
23 vfs.iter().map(lint::lint).partition(Result::is_ok); 23 vfs.iter().map(lint::lint).partition(Result::is_ok);
24 let lint_results: Vec<_> = reports.into_iter().map(Result::unwrap).collect(); 24 let lint_results = reports.into_iter().map(Result::unwrap);
25 let errors: Vec<_> = errors.into_iter().map(Result::unwrap_err).collect(); 25 let errors = errors.into_iter().map(Result::unwrap_err);
26 26
27 let mut stderr = io::stderr(); 27 let mut stderr = io::stderr();
28 lint_results.into_iter().for_each(|r| { 28 lint_results.for_each(|r| {
29 stderr.write(&r, &vfs).unwrap(); 29 stderr.write(&r, &vfs).unwrap();
30 }); 30 });
31 errors.into_iter().for_each(|e| { 31 errors.for_each(|e| {
32 eprintln!("{}", e); 32 eprintln!("{}", e);
33 }); 33 });
34 } 34 }