summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2025-08-24 00:08:06 +0200
committerStefan Kreutz <mail@skreutz.com>2025-08-24 00:08:06 +0200
commit05d7286d8342299f16550cf29d300e5140f99dc7 (patch)
tree563ce1022eadcb2e143fad8680d6137305e24fcc /src/main.rs
parent7e30686bc92bc4ce1650b1031afb7a6a6ebb91ec (diff)
downloadbrck-05d7286d8342299f16550cf29d300e5140f99dc7.tar
Fix cosmetic Clippy warnings
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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(())
}
Generated by cgit. See skreutz.com for my tech blog and contact information.