Skip to content

Commit b1a2641

Browse files
committed
Fix clippy lint
1 parent 432a472 commit b1a2641

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ impl Index {
193193
}
194194

195195
let mut data = [0; Self::HEADER_SIZE];
196-
tracing::debug!(bytes = data.len(), "About to read from index");
197-
indexfile.read(&mut data)?;
198-
tracing::debug!(bytes = data.len(), "Read from index");
196+
tracing::debug!(bytes = data.len(), "About to read_exact from index");
197+
indexfile.read_exact(&mut data)?;
199198

200199
let (extra, (signature, version, count)) =
201200
parse_header(&data).map_err(|e| anyhow!("{:?}", e))?;

0 commit comments

Comments
 (0)