chore: update dependencies and fix clippy warnings
Some checks failed
Mirror / mirror (push) Failing after 1m45s
Test / cargo test (push) Successful in 1m33s

- refresh Cargo.lock to latest compatible crates
- simplify u32->u64 conversion in libnres
- use is_multiple_of in unpacker list validation
This commit is contained in:
2026-01-19 20:52:54 +04:00
parent 7c876faf12
commit 9dcce90201
3 changed files with 355 additions and 431 deletions

779
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,10 +2,7 @@ use crate::error::ConverterError;
/// Method for converting u32 to u64. /// Method for converting u32 to u64.
pub fn u32_to_u64(value: u32) -> Result<u64, ConverterError> { pub fn u32_to_u64(value: u32) -> Result<u64, ConverterError> {
match u64::try_from(value) { Ok(u64::from(value))
Err(error) => Err(ConverterError::Infallible(error)),
Ok(result) => Ok(result),
}
} }
/// Method for converting u32 to usize. /// Method for converting u32 to usize.

View File

@@ -73,7 +73,7 @@ fn unpack(input: String, output: String) {
.unwrap(); .unwrap();
reader.read_exact(&mut list_buffer).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") panic!("invalid files list")
} }