From 87e0c814af4d87d5b049659001ac131dc022b452 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 1 Dec 2024 17:30:18 -0500 Subject: [PATCH] remove unnecessary move --- native/philomena/src/zip.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native/philomena/src/zip.rs b/native/philomena/src/zip.rs index 069246a3..24afd300 100644 --- a/native/philomena/src/zip.rs +++ b/native/philomena/src/zip.rs @@ -53,15 +53,15 @@ pub fn open_writer(path: &str) -> Result { pub fn start_file(writer: WriterResourceArc, name: &str) -> Atom { let options = SimpleFileOptions::default().compression_method(CompressionMethod::Deflated); - with_writer(writer, move |writer| { + with_writer(writer, |writer| { writer.as_mut()?.start_file(name, options).ok() }) } pub fn write(writer: WriterResourceArc, data: &[u8]) -> Atom { - with_writer(writer, move |writer| writer.as_mut()?.write(data).ok()) + with_writer(writer, |writer| writer.as_mut()?.write(data).ok()) } pub fn finish(writer: WriterResourceArc) -> Atom { - with_writer(writer, move |writer| writer.take().map(|w| w.finish().ok())) + with_writer(writer, |writer| writer.take().map(|w| w.finish().ok())) }