History

thanks clippy

Sebastian Thiel committed 3 years ago

Commit bac57dd1 parent e22080e100 files · +172 −230Browse files

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

Unified · Split

git-pack/src/data/input/entries_to_bytes.rs+2−2
@@ -90,11 +90,11 @@ where · 89 unmodified lines
9090 } else {
9191 header_bytes.len() as u64
9292 };
93− self.output.seek(std::io::SeekFrom::Start(0))?;
93+ self.output.rewind()?;
9494 self.output.write_all(&header_bytes[..])?;
9595 self.output.flush()?;
9696
97− self.output.seek(std::io::SeekFrom::Start(0))?;
97+ self.output.rewind()?;
9898 let interrupt_never = std::sync::atomic::AtomicBool::new(false);
9999 let digest = hash::bytes(
100100 &mut self.output,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t