aboutsummaryrefslogtreecommitdiff
path: root/crates/readrom
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-17 07:41:39 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-17 07:41:39 +0200
commit3d772470b09c4a8b78f526c3fd566c0aae1ab94f (patch)
tree4340b241bff20cb43931ba2243d02b79c79f01e5 /crates/readrom
parent6993a164dd57c57be9f79190824b774b162272eb (diff)
downloadtools.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/readrom')
-rw-r--r--crates/readrom/src/main.rs6
1 files changed, 3 insertions, 3 deletions
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);
}