From 3f1d69c6ef5f46f950be752eb6ce94d17d4313d9 Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Sun, 28 Sep 2014 20:14:32 +0200 Subject: [PATCH] Change deprecated function Vec::from_slice --- src/writer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer.rs b/src/writer.rs index 3fdaed26..c3f7d29a 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -190,7 +190,7 @@ impl ZipWriter number_of_files: self.files.len() as u16, central_directory_size: central_size as u32, central_directory_offset: central_start as u32, - zip_file_comment: Vec::from_slice(b"zip-rs"), + zip_file_comment: b"zip-rs".to_vec(), }; try!(footer.write(writer));