From f3bc1129f133cccd592a54f53c8ff9e0da85cd23 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 21 Nov 2018 09:41:56 +0100 Subject: zip: Update test to pass a mutable reference to the file Forgot to change this when I changed the function signature. --- license-generator/src/zip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/license-generator/src/zip.rs b/license-generator/src/zip.rs index 7b3600c..e0bf035 100644 --- a/license-generator/src/zip.rs +++ b/license-generator/src/zip.rs @@ -27,7 +27,7 @@ mod tests { #[test] #[ignore] fn license_produces_a_valid_zip_file() { - let file = File::create("/tmp/license.zip").unwrap(); + let mut file = File::create("/tmp/license.zip").unwrap(); let plist = r#" @@ -43,6 +43,6 @@ mod tests { "#; - license(file, plist.as_bytes()).unwrap(); + license(&mut file, plist.as_bytes()).unwrap(); } } -- cgit v1.2.3