From d95c925ac20aaa1feb7b1ae81178a6bc340a0662 Mon Sep 17 00:00:00 2001
From: Mathijs van de Nes <git@mathijs.vd-nes.nl>
Date: Mon, 22 Feb 2016 19:54:18 +0100
Subject: [PATCH] Let ZipWriter::finish be called without consuming

Resolves #10
---
 Cargo.toml   | 2 +-
 src/write.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index c06e0130..586840bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 
 name = "zip"
-version = "0.1.15"
+version = "0.1.16"
 authors = ["Mathijs van de Nes <git@mathijs.vd-nes.nl>"]
 license = "MIT"
 repository = "https://github.com/mvdnes/zip-rs.git"
diff --git a/src/write.rs b/src/write.rs
index 73efe9ea..88dad79b 100644
--- a/src/write.rs
+++ b/src/write.rs
@@ -185,7 +185,7 @@ impl<W: Write+io::Seek> ZipWriter<W>
     ///
     /// This will return the writer, but one should normally not append any data to the end of the file.  
     /// Note that the zipfile will also be finished on drop.
-    pub fn finish(mut self) -> ZipResult<W>
+    pub fn finish(&mut self) -> ZipResult<W>
     {
         try!(self.finalize());
         let inner = mem::replace(&mut self.inner, GenericZipWriter::Closed);