diff --git a/components/imageproc/src/lib.rs b/components/imageproc/src/lib.rs index 745d40a..7385efc 100644 --- a/components/imageproc/src/lib.rs +++ b/components/imageproc/src/lib.rs @@ -300,7 +300,7 @@ impl ImageOp { match self.format { Format::Png => { - let mut enc = PNGEncoder::new(&mut f); + let enc = PNGEncoder::new(&mut f); enc.encode(&img.raw_pixels(), img_w, img_h, img.color())?; } Format::Jpeg(q) => { diff --git a/components/library/src/library.rs b/components/library/src/library.rs index c724a2e..9cd7555 100644 --- a/components/library/src/library.rs +++ b/components/library/src/library.rs @@ -139,7 +139,7 @@ impl Library { let parent_is_transparent; // We need to get a reference to a section later so keep the scope of borrowing small { - let mut section = self.sections.get_mut(*section_key).unwrap(); + let section = self.sections.get_mut(*section_key).unwrap(); section.pages.push(key); parent_is_transparent = section.meta.transparent; } diff --git a/components/utils/src/de.rs b/components/utils/src/de.rs index 27259cc..e6ff63d 100644 --- a/components/utils/src/de.rs +++ b/components/utils/src/de.rs @@ -40,7 +40,7 @@ pub fn fix_toml_dates(table: Map) -> Value { for (key, value) in table { match value { - Value::Object(mut o) => { + Value::Object(o) => { new.insert(key, convert_toml_date(o)); } _ => {