History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit 53bd30f1 parent b61a9201 file · +1 −1Browse files

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

Unified · Split

git-commitgraph/src/file/init.rs+1−1
@@ -92,7 +92,7 @@ impl TryFrom<&Path> for File { · 91 unmodified lines
9292 };
9393 ofs += 1;
9494
95− let object_hash = git_hash::Kind::try_from(data[ofs]).map_err(|x| Error::UnsupportedHashVersion(x))?;
95+ let object_hash = git_hash::Kind::try_from(data[ofs]).map_err(Error::UnsupportedHashVersion)?;
9696 ofs += 1;
9797
9898 let chunk_count = data[ofs];