diff --git a/examples/gzencoder-read.rs b/examples/gzencoder-read.rs index 3191356db..3f1262b99 100644 --- a/examples/gzencoder-read.rs +++ b/examples/gzencoder-read.rs @@ -15,6 +15,6 @@ fn gzencoder_read_hello_world() -> io::Result> { let mut result = Vec::new(); let c = b"hello world"; let mut z = GzEncoder::new(&c[..], Compression::fast()); - z.read_to_end(&mut ret_vec)?; + z.read_to_end(&mut result)?; Ok(result) } diff --git a/tests/corrupt-file.gz b/tests/corrupt-gz-file.bin similarity index 100% rename from tests/corrupt-file.gz rename to tests/corrupt-gz-file.bin diff --git a/tests/gunzip.rs b/tests/gunzip.rs index 855c620b0..c3820328a 100644 --- a/tests/gunzip.rs +++ b/tests/gunzip.rs @@ -33,7 +33,7 @@ fn test_extract_success_partial_multi() { // test extraction fails on a corrupt file #[test] fn test_extract_failure() { - let result = extract_file(Path::new("tests/corrupt-file.gz")); + let result = extract_file(Path::new("tests/corrupt-gz-file.bin")); assert_eq!(result.err().unwrap().kind(), io::ErrorKind::InvalidInput); }