diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index b22d7e0..9c874ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,7 +101,7 @@ fn main() { EXIT_FAILURE } Err(err) => { - eprintln!("Error: {:?}", err); + eprintln!("Error: {err:?}"); match err.downcast_ref::<RecordError>() { Some(RecordError::Interrupt) => EXIT_INTERRUPT, _ => EXIT_FAILURE, @@ -269,7 +269,7 @@ fn run() -> Result<(), anyhow::Error> { "Changed: {:>width$}", counter.get(&DiffKind::Changed).unwrap_or(&0) ); - eprintln!("Total: {:>width$}", total); + eprintln!("Total: {total:>width$}"); } if denied > 0 { @@ -326,7 +326,7 @@ fn record<T: std::io::Write>(diff: &Diff, mut writer: T) -> Result<(), std::io:: }; if let Some(file) = file { let s = serde_json::to_string(file).unwrap(); - writeln!(writer, "{}", s) + writeln!(writer, "{s}") } else { Ok(()) } |