aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-07-09 22:14:40 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-07-09 22:14:40 +0200
commita012d260db4ad9a234a2ef29e8c0f7f6ef5f6a4e (patch)
treefb631591b6ca6ab0c36611156c3e65e6149d47a4 /crates
parent6f58e4ab8d90166cac4e4da269a77c5134f12f1e (diff)
downloadtools.nes-a012d260db4ad9a234a2ef29e8c0f7f6ef5f6a4e.tar.gz
tools.nes-a012d260db4ad9a234a2ef29e8c0f7f6ef5f6a4e.zip
Minor style fixes from an upgraded clippy
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/nasm/src/main.rs2
-rw-r--r--crates/readrom/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs
index 4ec4f59..7160137 100644
--- a/crates/nasm/src/main.rs
+++ b/crates/nasm/src/main.rs
@@ -295,7 +295,7 @@ fn main() {
// Select the input stream and build the source object.
let path = Path::new(&args.file);
let Ok(input) = File::open(path) else {
- die(format!("failed to open the given file '{}'", &args.file));
+ die(format!("failed to open the given file '{}'", args.file));
return;
};
let source = match path.parent() {
diff --git a/crates/readrom/src/main.rs b/crates/readrom/src/main.rs
index 16dfa90..07ca349 100644
--- a/crates/readrom/src/main.rs
+++ b/crates/readrom/src/main.rs
@@ -141,7 +141,7 @@ fn main() {
let args = parse_arguments();
let Ok(mut input) = File::open(&args.file) else {
- die(format!("failed to open the given file '{}'", &args.file));
+ die(format!("failed to open the given file '{}'", args.file));
return;
};