Skip to content

Commit 8860c6b

Browse files
LessUpqwencoder
andcommitted
ci: fix rustfmt formatting
- Reformat huffman/rust/main.rs with rustfmt Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent 57fc9e5 commit 8860c6b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

huffman/rust/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ fn read_frequencies<R: Read>(reader: &mut R) -> io::Result<Vec<u32>> {
243243
let mut freq = vec![0u32; count];
244244
for f in freq.iter_mut() {
245245
let mut arr = [0u8; 4];
246-
reader
247-
.read_exact(&mut arr)
248-
.map_err(|e| io::Error::new(e.kind(), format!("failed to read frequency table: {e}")))?;
246+
reader.read_exact(&mut arr).map_err(|e| {
247+
io::Error::new(e.kind(), format!("failed to read frequency table: {e}"))
248+
})?;
249249
*f = u32::from_le_bytes(arr);
250250
}
251251

0 commit comments

Comments
 (0)