diff options
author | Akshay <[email protected]> | 2021-11-06 09:24:29 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-11-06 09:24:29 +0000 |
commit | 04f843e5fde032b23fa780c5b650c7d58761f3ba (patch) | |
tree | 9c7d9f16f1df7e934627a60a0346ecd0bc49797f /bin/src | |
parent | 324a333e671ed521138ad50fe463ed187874176e (diff) |
output check diagnostics on stdout instead of stderr
Diffstat (limited to 'bin/src')
-rw-r--r-- | bin/src/lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
42 | 42 | ||
43 | pub fn main(check_config: CheckConfig) -> Result<(), StatixErr> { | 43 | pub fn main(check_config: CheckConfig) -> Result<(), StatixErr> { |
44 | let vfs = check_config.vfs()?; | 44 | let vfs = check_config.vfs()?; |
45 | let mut stderr = io::stderr(); | 45 | let mut stdout = io::stdout(); |
46 | vfs.iter().map(lint).for_each(|r| { | 46 | vfs.iter().map(lint).for_each(|r| { |
47 | stderr.write(&r, &vfs, check_config.format).unwrap(); | 47 | stdout.write(&r, &vfs, check_config.format).unwrap(); |
48 | }); | 48 | }); |
49 | Ok(()) | 49 | Ok(()) |
50 | } | 50 | } |