Change deprecated function Vec::from_slice

This commit is contained in:
Mathijs van de Nes 2014-09-28 20:14:32 +02:00
parent e4a3bc4437
commit 3f1d69c6ef

View file

@ -190,7 +190,7 @@ impl<W: Writer+Seek> ZipWriter<W>
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));