From 0a61164d96d6100c72d2f7616057b7372a30fdf2 Mon Sep 17 00:00:00 2001 From: Davis Vaughan Date: Tue, 14 Jan 2025 15:39:56 -0500 Subject: [PATCH] Write info to stderr not stdout --- crates/air/src/commands/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/air/src/commands/format.rs b/crates/air/src/commands/format.rs index 61fb4bab..26aff743 100644 --- a/crates/air/src/commands/format.rs +++ b/crates/air/src/commands/format.rs @@ -1,7 +1,7 @@ use std::fmt::Display; use std::fmt::Formatter; use std::io; -use std::io::stdout; +use std::io::stderr; use std::io::Write; use std::path::PathBuf; @@ -58,7 +58,7 @@ pub(crate) fn format(command: FormatCommand) -> anyhow::Result { match mode { FormatMode::Write => {} FormatMode::Check => { - write_changed(&actions, &mut stdout().lock())?; + write_changed(&actions, &mut stderr().lock())?; } }