diff options
| author | Valentin Popov <valentin@popov.link> | 2026-01-19 19:52:54 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-01-19 19:52:54 +0300 |
| commit | 9dcce9020130dbef7787abd4ba43c766d491bda8 (patch) | |
| tree | 81658f517c3530eb96b186493c09a91995ae5335 /libs/nres/src | |
| parent | 7c876faf12143bb96338bec37b3724420e2c5b25 (diff) | |
| download | fparkan-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 'libs/nres/src')
| -rw-r--r-- | libs/nres/src/converter.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/nres/src/converter.rs b/libs/nres/src/converter.rs index bbf0535..c059fae 100644 --- a/libs/nres/src/converter.rs +++ b/libs/nres/src/converter.rs @@ -2,10 +2,7 @@ use crate::error::ConverterError; /// Method for converting u32 to u64. pub fn u32_to_u64(value: u32) -> Result<u64, ConverterError> { - match u64::try_from(value) { - Err(error) => Err(ConverterError::Infallible(error)), - Ok(result) => Ok(result), - } + Ok(u64::from(value)) } /// Method for converting u32 to usize. |
