aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-07-08 20:45:05 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-07-08 21:09:42 +0200
commit6333dc7ee02332cd06e20b56cefd3210368e54f8 (patch)
treebc32b202172fc1d3981da50e7d0a085aa64252f3 /crates
parent5fca76b56034554d965b77d1485f92685d79bc84 (diff)
downloadtools.nes-6333dc7ee02332cd06e20b56cefd3210368e54f8.tar.gz
tools.nes-6333dc7ee02332cd06e20b56cefd3210368e54f8.zip
Upgrade to the 2024 edition of Rust
And also adjust the code so the clippy from the 2024 edition is fine with it. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/nasm/Cargo.toml2
-rw-r--r--crates/nasm/src/main.rs5
-rw-r--r--crates/readrom/Cargo.toml1
-rw-r--r--crates/xa65/Cargo.toml2
4 files changed, 4 insertions, 6 deletions
diff --git a/crates/nasm/Cargo.toml b/crates/nasm/Cargo.toml
index f1294f7..b204a33 100644
--- a/crates/nasm/Cargo.toml
+++ b/crates/nasm/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "nasm"
version = "0.1.0"
-edition = "2021"
+edition = "2024"
authors = ["Miquel Sabaté Solà <mikisabate@gmail.com>"]
[dependencies]
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs
index 9f44620..4ec4f59 100644
--- a/crates/nasm/src/main.rs
+++ b/crates/nasm/src/main.rs
@@ -207,11 +207,10 @@ fn find_git_directory(source: &SourceInfo) -> PathBuf {
fn get_directory_from_source(source: &SourceInfo) -> PathBuf {
let dir = find_git_directory(source).join(".nasm");
- if !dir.exists() {
- if let Err(e) = create_dir(&dir) {
+ if !dir.exists()
+ && let Err(e) = create_dir(&dir) {
die(e.to_string());
}
- }
dir
}
diff --git a/crates/readrom/Cargo.toml b/crates/readrom/Cargo.toml
index 326ed92..ff2f04b 100644
--- a/crates/readrom/Cargo.toml
+++ b/crates/readrom/Cargo.toml
@@ -1,7 +1,6 @@
[package]
name = "readrom"
version = "1.0.0"
-rust-version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
diff --git a/crates/xa65/Cargo.toml b/crates/xa65/Cargo.toml
index 1a2c52c..8ca15cc 100644
--- a/crates/xa65/Cargo.toml
+++ b/crates/xa65/Cargo.toml
@@ -1,5 +1,5 @@
[package]
name = "xa65"
version = "0.1.0"
-edition = "2021"
+edition = "2024"
authors = ["Miquel Sabaté Solà <mikisabate@gmail.com>"]