History

thanks clippy

Sebastian Thiel committed 5 years ago

Commit 96ef0b01 parent 116bdc41 file · +2 −3Browse files

Showing the changes to git-pack/src/data (1 of 1 file). Show all

Unified · Split

git-pack/src/data/input/bytes.rs+2−3
@@ -74,12 +74,11 @@ where · 73 unmodified lines
7474 }
7575 entry
7676 .header
77− .write_to(entry.decompressed_size as u64, &mut self.output)? as u64;
77+ .write_to(entry.decompressed_size as u64, &mut self.output)?;
7878 std::io::copy(
7979 &mut &*entry
8080 .compressed
81− .as_ref()
82− .map(|v| v.as_slice())
81+ .as_deref()
8382 .expect("caller must configure generator to keep compressed bytes"),
8483 &mut self.output,
8584 )?;