File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ path = "lib.rs"
9
9
[dependencies ]
10
10
cargo = { path = " ../.." }
11
11
filetime = " 0.1"
12
- flate2 = " 0.2 "
12
+ flate2 = " 1.0 "
13
13
git2 = { version = " 0.6" , default-features = false }
14
14
hamcrest = " =0.1.1"
15
15
hex = " 0.2"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::fs::{self, File};
3
3
use std:: io:: prelude:: * ;
4
4
use std:: path:: { PathBuf , Path } ;
5
5
6
- use flate2:: Compression :: Default ;
6
+ use flate2:: Compression ;
7
7
use flate2:: write:: GzEncoder ;
8
8
use git2;
9
9
use hex:: ToHex ;
@@ -273,7 +273,8 @@ impl Package {
273
273
let dst = self . archive_dst ( ) ;
274
274
t ! ( fs:: create_dir_all( dst. parent( ) . unwrap( ) ) ) ;
275
275
let f = t ! ( File :: create( & dst) ) ;
276
- let mut a = Builder :: new ( GzEncoder :: new ( f, Default ) ) ;
276
+ let mut a =
277
+ Builder :: new ( GzEncoder :: new ( f, Compression :: default ( ) ) ) ;
277
278
self . append ( & mut a, "Cargo.toml" , & manifest) ;
278
279
if self . files . is_empty ( ) {
279
280
self . append ( & mut a, "src/lib.rs" , "" ) ;
You can’t perform that action at this time.
0 commit comments