Skip to content

Commit

Permalink
📝 Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Feb 21, 2024
1 parent a449417 commit 3f36642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ impl Encoder {
encoder.use_container = self.use_container;
encoder.decoding_speed = self.decoding_speed;
encoder.color_encoding = match self.num_channels {
1|2 => ColorEncoding::SrgbLuma,
3|4 => ColorEncoding::Srgb,
1 | 2 => ColorEncoding::SrgbLuma,
3 | 4 => ColorEncoding::Srgb,
_ => panic!("Invalid num channels"),
};
let buffer: EncoderResult<u8> = match jpeg_encode {
Expand Down

0 comments on commit 3f36642

Please sign in to comment.