From 04f843e5fde032b23fa780c5b650c7d58761f3ba Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 6 Nov 2021 14:54:29 +0530 Subject: output check diagnostics on stdout instead of stderr --- bin/src/lint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/src/lint.rs b/bin/src/lint.rs index da9ee22..1138c23 100644 --- a/bin/src/lint.rs +++ b/bin/src/lint.rs @@ -42,9 +42,9 @@ pub mod main { pub fn main(check_config: CheckConfig) -> Result<(), StatixErr> { let vfs = check_config.vfs()?; - let mut stderr = io::stderr(); + let mut stdout = io::stdout(); vfs.iter().map(lint).for_each(|r| { - stderr.write(&r, &vfs, check_config.format).unwrap(); + stdout.write(&r, &vfs, check_config.format).unwrap(); }); Ok(()) } -- cgit v1.2.3