From 3d772470b09c4a8b78f526c3fd566c0aae1ab94f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 17 Aug 2025 07:41:39 +0200 Subject: Apply suggested style fixes from clippy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- crates/readrom/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/readrom/src') diff --git a/crates/readrom/src/main.rs b/crates/readrom/src/main.rs index e37e8c7..4308d2e 100644 --- a/crates/readrom/src/main.rs +++ b/crates/readrom/src/main.rs @@ -38,12 +38,12 @@ fn parse_arguments() -> Args { res.header = true; } "-v" | "--version" => { - println!("readrom {}", VERSION); + println!("readrom {VERSION}"); std::process::exit(0); } _ => { if arg.starts_with('-') { - die(format!("don't know how to handle the '{}' flag", arg)); + die(format!("don't know how to handle the '{arg}' flag")); } if !res.file.is_empty() { die("cannot have multiple source files".to_string()); @@ -99,7 +99,7 @@ fn print_vectors(addrs: &[u8]) { // Print the given `message` and exit(1). fn die(message: String) { - println!("error: {}", message); + println!("error: {message}"); std::process::exit(1); } -- cgit v1.2.3