From 2da28d0495e75a0954c194e2e0c4db03c23cb05f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 18 Jul 2026 05:28:07 +0400 Subject: style: format workspace with Rust 1.97 --- crates/fparkan-nres/src/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'crates/fparkan-nres') 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, 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 + })) )); } -- cgit v1.2.3