Skip to content

Commit

Permalink
Fix formatting (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Jan 31, 2025
1 parent a19cf37 commit d42e6be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/decoder/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,9 @@ impl Image {
CompressionMethod::None => Box::new(reader),
CompressionMethod::LZW => {
Box::new(LZWReader::new(reader, usize::try_from(compressed_length)?))
},
}
#[cfg(feature = "zstd")]
CompressionMethod::ZSTD => {
Box::new(zstd::Decoder::new(reader)?)
},
CompressionMethod::ZSTD => Box::new(zstd::Decoder::new(reader)?),
CompressionMethod::PackBits => Box::new(PackBitsReader::new(reader, compressed_length)),
CompressionMethod::Deflate | CompressionMethod::OldDeflate => {
Box::new(DeflateReader::new(reader))
Expand Down

0 comments on commit d42e6be

Please sign in to comment.