diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:41:39 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:41:39 +0200 |
| commit | 3d772470b09c4a8b78f526c3fd566c0aae1ab94f (patch) | |
| tree | 4340b241bff20cb43931ba2243d02b79c79f01e5 /crates/xa65/src/main.rs | |
| parent | 6993a164dd57c57be9f79190824b774b162272eb (diff) | |
| download | tools.nes-3d772470b09c4a8b78f526c3fd566c0aae1ab94f.tar.gz tools.nes-3d772470b09c4a8b78f526c3fd566c0aae1ab94f.zip | |
Apply suggested style fixes from clippy
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/xa65/src/main.rs')
| -rw-r--r-- | crates/xa65/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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}")); } } |
