diff options
| author | Valentin Popov <valentin@popov.link> | 2026-07-18 04:28:07 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-07-18 04:28:07 +0300 |
| commit | 2da28d0495e75a0954c194e2e0c4db03c23cb05f (patch) | |
| tree | 2aa909ea4c197b5265064ef3974bce00fc5fc4c9 /crates/fparkan-nres/src/lib.rs | |
| parent | 02b4da2e3d78cc7df7278d7b17cf65620d58db54 (diff) | |
| download | fparkan-2da28d0495e75a0954c194e2e0c4db03c23cb05f.tar.xz fparkan-2da28d0495e75a0954c194e2e0c4db03c23cb05f.zip | |
style: format workspace with Rust 1.97
Diffstat (limited to 'crates/fparkan-nres/src/lib.rs')
| -rw-r--r-- | crates/fparkan-nres/src/lib.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/fparkan-nres/src/lib.rs b/crates/fparkan-nres/src/lib.rs index 520d498..86dd613 100644 --- a/crates/fparkan-nres/src/lib.rs +++ b/crates/fparkan-nres/src/lib.rs @@ -802,10 +802,8 @@ fn parse_entries( header: &NresHeader, limits: DecodeLimits, ) -> Result<Vec<NresEntry>, NresError> { - let capacity = checked_allocation_len( - u64::from(header.entry_count), - u64::from(limits.max_entries), - )?; + let capacity = + checked_allocation_len(u64::from(header.entry_count), u64::from(limits.max_entries))?; let mut entries = Vec::with_capacity(capacity); let directory_offset = usize::try_from(header.directory_offset).map_err(|_| DecodeError::IntegerOverflow)?; @@ -1629,7 +1627,10 @@ mod tests { ..DecodeLimits::default() } ), - Err(NresError::Binary(DecodeError::LimitExceeded { count: 2, limit: 1 })) + Err(NresError::Binary(DecodeError::LimitExceeded { + count: 2, + limit: 1 + })) )); } |
