From 19337bada0404361f60fbd96e6031d6f8bf98327 Mon Sep 17 00:00:00 2001 From: kralverde Date: Thu, 28 Nov 2024 14:18:53 -0500 Subject: [PATCH] cargo fmt --- pumpkin-world/src/chunk/anvil.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pumpkin-world/src/chunk/anvil.rs b/pumpkin-world/src/chunk/anvil.rs index ecbc265ae..6d13e9604 100644 --- a/pumpkin-world/src/chunk/anvil.rs +++ b/pumpkin-world/src/chunk/anvil.rs @@ -145,8 +145,9 @@ impl ChunkReader for AnvilChunkReader { // TODO: check checksum to make sure chunk is not corrupted let header = file_buf.drain(0..5).collect_vec(); - let compression = Compression::from_byte(header[4]) - .ok_or(ChunkReadingError::Compression(CompressionError::UnknownCompression))?; + let compression = Compression::from_byte(header[4]).ok_or( + ChunkReadingError::Compression(CompressionError::UnknownCompression), + )?; let size = u32::from_be_bytes(header[..4].try_into().unwrap());