aboutsummaryrefslogtreecommitdiff
path: root/tools/unpacker/src
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-01-19 19:52:54 +0300
committerValentin Popov <valentin@popov.link>2026-01-19 19:52:54 +0300
commit9dcce9020130dbef7787abd4ba43c766d491bda8 (patch)
tree81658f517c3530eb96b186493c09a91995ae5335 /tools/unpacker/src
parent7c876faf12143bb96338bec37b3724420e2c5b25 (diff)
downloadfparkan-9dcce9020130dbef7787abd4ba43c766d491bda8.tar.xz
fparkan-9dcce9020130dbef7787abd4ba43c766d491bda8.zip
chore: update dependencies and fix clippy warnings
- refresh Cargo.lock to latest compatible crates - simplify u32->u64 conversion in libnres - use is_multiple_of in unpacker list validation
Diffstat (limited to 'tools/unpacker/src')
-rw-r--r--tools/unpacker/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/unpacker/src/main.rs b/tools/unpacker/src/main.rs
index 2a84688..36a48c7 100644
--- a/tools/unpacker/src/main.rs
+++ b/tools/unpacker/src/main.rs
@@ -73,7 +73,7 @@ fn unpack(input: String, output: String) {
.unwrap();
reader.read_exact(&mut list_buffer).unwrap();
- if list_buffer.len() % 64 != 0 {
+ if !list_buffer.len().is_multiple_of(64) {
panic!("invalid files list")
}