diff options
author | Teddy Wing | 2018-11-21 09:41:56 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-21 09:41:56 +0100 |
commit | f3bc1129f133cccd592a54f53c8ff9e0da85cd23 (patch) | |
tree | 97fb711651869005c910a5b992779412874b6a46 | |
parent | 627a486606bc5ebcb52ac417b6156bd9a0ea553e (diff) | |
download | dome-key-web-f3bc1129f133cccd592a54f53c8ff9e0da85cd23.tar.bz2 |
zip: Update test to pass a mutable reference to the file
Forgot to change this when I changed the function signature.
-rw-r--r-- | license-generator/src/zip.rs | 4 |
1 files 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#"<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> @@ -43,6 +43,6 @@ mod tests { </dict> </plist>"#; - license(file, plist.as_bytes()).unwrap(); + license(&mut file, plist.as_bytes()).unwrap(); } } |