We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c2b9d commit f3b8969Copy full SHA for f3b8969
src/alejandra_cli/src/cli.rs
@@ -194,10 +194,11 @@ pub fn main() -> std::io::Result<()> {
194
(true, false) => "requires formatting",
195
}
196
);
197
- }
198
- if in_place {
199
- println!();
200
- print!("{}", random_ad());
+
+ if in_place {
+ eprintln!();
+ eprint!("{}", random_ad());
201
+ }
202
203
204
std::process::exit(if in_place { 0 } else { 2 });
@@ -206,8 +207,8 @@ pub fn main() -> std::io::Result<()> {
206
207
if !args.quiet {
208
eprintln!();
209
eprintln!("Congratulations! Your code complies the Alejandra style.");
210
211
212
213
214
std::process::exit(0);
0 commit comments