Skip to content

Commit 745a020

Browse files
authored
Merge pull request #74 from MaloJaffre/flate-1.0
Upgrade flate crate to 1.0.1
2 parents 0ddd53c + 6b6e662 commit 745a020

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "src/main.rs"
1010

1111
[dependencies]
1212
error-chain = "0.11.0"
13-
flate2 = "0.2.19"
13+
flate2 = "1.0.1"
1414
tar = "0.4.13"
1515
walkdir = "1.0.7"
1616
xz2 = "0.1.3"

src/combiner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ impl Combiner {
6565
let components = create_new_file(package_dir.join("components"))?;
6666
for input_tarball in self.input_tarballs.split(',').map(str::trim).filter(|s| !s.is_empty()) {
6767
// 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)
7070
.chain_err(|| format!("unable to extract '{}' into '{}'",
7171
&input_tarball, self.work_dir))?;
7272

src/tarballer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Tarballer {
7979
let contents2 = contents.clone();
8080
let t = thread::spawn(move || {
8181
let mut gz = GzEncoder::new(create_new_file(tar_gz)?,
82-
flate2::Compression::Best);
82+
flate2::Compression::best());
8383
gz.write_all(&contents2).chain_err(|| "failed to write .gz")?;
8484
gz.finish().chain_err(|| "failed to finish .gz")
8585
});

0 commit comments

Comments
 (0)