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/xa65/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/xa65/src') diff --git a/crates/xa65/src/main.rs b/crates/xa65/src/main.rs index 80aaac2..d10ee19 100644 --- a/crates/xa65/src/main.rs +++ b/crates/xa65/src/main.rs @@ -73,12 +73,12 @@ fn parse_arguments() -> Args { }, }, "-v" | "--version" => { - println!("xa65 {}", VERSION); + println!("xa65 {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()); @@ -100,7 +100,7 @@ fn parse_arguments() -> Args { // Print the given `message` and exit(1). fn die(message: String) { - eprintln!("error: {}", message); + eprintln!("error: {message}"); std::process::exit(1); } @@ -279,6 +279,6 @@ fn main() { // Note that the binary is the one from 'cl65' just in case 'diff' failed // (we take 'cl65' as the source of truth). if let Err(e) = std::fs::copy(dir.join("cl65.nes"), args.out) { - die(format!("could not copy the resulting binary: {}", e)); + die(format!("could not copy the resulting binary: {e}")); } } -- cgit v1.2.3