File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use tracing::{Level, metadata::LevelFilter};
66use tracing_indicatif:: {
77 IndicatifLayer ,
88 filter:: { IndicatifFilter , hide_indicatif_span_fields} ,
9- indicatif_eprintln,
9+ indicatif_eprintln, indicatif_println ,
1010} ;
1111use 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 }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments