aboutsummaryrefslogtreecommitdiff
path: root/crates/readrom/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/readrom/src/main.rs')
-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);
}