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())?; } }