Skip to content

Commit 17a2764

Browse files
committed
chore: use indicatif_(e)println
1 parent 43e9eae commit 17a2764

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust/stackablectl/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tracing::{Level, metadata::LevelFilter};
66
use tracing_indicatif::{
77
IndicatifLayer,
88
filter::{IndicatifFilter, hide_indicatif_span_fields},
9-
indicatif_eprintln,
9+
indicatif_eprintln, indicatif_println,
1010
};
1111
use tracing_subscriber::{
1212
Layer as _,
@@ -63,12 +63,12 @@ async fn main() -> Result<(), Error> {
6363
}
6464

6565
match app.run().await {
66-
Ok(result) => print!("{result}"),
66+
Ok(result) => indicatif_println!("{result}"),
6767
Err(err) => {
6868
let mut output = app.error();
6969
output.with_error_report(err);
7070

71-
eprint!("{}", output.render());
71+
indicatif_eprintln!("{error}", error = output.render());
7272
std::process::exit(1);
7373
}
7474
}

rust/stackablectl/src/output/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ where
6565
let mut index = 1;
6666

6767
while let Some(source) = error.source() {
68-
writeln!(report, " {}: {}", index, source)?;
68+
writeln!(report, " {index}: {source}")?;
6969
error = source;
7070
index += 1;
7171
}

0 commit comments

Comments
 (0)