diff options
| author | Fuwn <[email protected]> | 2024-06-10 10:04:50 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-10 10:04:50 +0000 |
| commit | cc5ba080107efddc15a5b538bbcd6adbb981fd55 (patch) | |
| tree | 8fad210105e54953af16421b29cfdb7e8f4cb727 /src/main.rs | |
| parent | refactor: bump nightly rust and fix lints (diff) | |
| download | para-cc5ba080107efddc15a5b538bbcd6adbb981fd55.tar.xz para-cc5ba080107efddc15a5b538bbcd6adbb981fd55.zip | |
style: use updated rustfmt rules
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index 9a77a70..60fcfbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,11 +15,7 @@ mod ppm; -use std::process::exit; - -use image::DynamicImage; - -use crate::ppm::PPMParser; +use {crate::ppm::PPMParser, image::DynamicImage, std::process::exit}; #[allow(unused)] fn get_image(parser: &mut PPMParser, index: usize) -> DynamicImage { @@ -99,9 +95,7 @@ fn main() { .encode_frame(image::Frame::new(frame.into_rgba8())) .unwrap(); } - gif_encoder - .set_repeat(image::codecs::gif::Repeat::Infinite) - .unwrap(); + gif_encoder.set_repeat(image::codecs::gif::Repeat::Infinite).unwrap(); } "thumb" => { let thumb_index = parser.get_thumb_index() as usize; |