File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ path = "src/main.rs"
10
10
11
11
[dependencies ]
12
12
error-chain = " 0.11.0"
13
- flate2 = " 0.2.19 "
13
+ flate2 = " 1.0.1 "
14
14
tar = " 0.4.13"
15
15
walkdir = " 1.0.7"
16
16
xz2 = " 0.1.3"
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ impl Combiner {
65
65
let components = create_new_file ( package_dir. join ( "components" ) ) ?;
66
66
for input_tarball in self . input_tarballs . split ( ',' ) . map ( str:: trim) . filter ( |s| !s. is_empty ( ) ) {
67
67
// Extract the input tarballs
68
- GzDecoder :: new ( open_file ( & input_tarball) ?)
69
- . and_then ( |tar| Archive :: new ( tar) . unpack ( & self . work_dir ) )
68
+ let tar = GzDecoder :: new ( open_file ( & input_tarball) ?) ;
69
+ Archive :: new ( tar) . unpack ( & self . work_dir )
70
70
. chain_err ( || format ! ( "unable to extract '{}' into '{}'" ,
71
71
& input_tarball, self . work_dir) ) ?;
72
72
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ impl Tarballer {
79
79
let contents2 = contents. clone ( ) ;
80
80
let t = thread:: spawn ( move || {
81
81
let mut gz = GzEncoder :: new ( create_new_file ( tar_gz) ?,
82
- flate2:: Compression :: Best ) ;
82
+ flate2:: Compression :: best ( ) ) ;
83
83
gz. write_all ( & contents2) . chain_err ( || "failed to write .gz" ) ?;
84
84
gz. finish ( ) . chain_err ( || "failed to finish .gz" )
85
85
} ) ;
You can’t perform that action at this time.
0 commit comments