From 9dcce9020130dbef7787abd4ba43c766d491bda8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 19 Jan 2026 20:52:54 +0400 Subject: 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 --- tools/unpacker/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/unpacker/src/main.rs') 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") } -- cgit v1.2.3