Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kralverde committed Nov 28, 2024
1 parent 30aca6b commit 19337ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pumpkin-world/src/chunk/anvil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 19337ba

Please sign in to comment.