File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ fn gzencoder_read_hello_world() -> io::Result<Vec<u8>> {
1515 let mut result = Vec :: new ( ) ;
1616 let c = b"hello world" ;
1717 let mut z = GzEncoder :: new ( & c[ ..] , Compression :: fast ( ) ) ;
18- z. read_to_end ( & mut ret_vec ) ?;
18+ z. read_to_end ( & mut result ) ?;
1919 Ok ( result)
2020}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn test_extract_success_partial_multi() {
3333// test extraction fails on a corrupt file
3434#[ test]
3535fn test_extract_failure ( ) {
36- let result = extract_file ( Path :: new ( "tests/corrupt-file.gz " ) ) ;
36+ let result = extract_file ( Path :: new ( "tests/corrupt-gz- file.bin " ) ) ;
3737 assert_eq ! ( result. err( ) . unwrap( ) . kind( ) , io:: ErrorKind :: InvalidInput ) ;
3838}
3939
You can’t perform that action at this time.
0 commit comments