History

thanks clippy

Sebastian Thiel committed 3 years ago

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

Showing the changes to git-diff/tests (1 of 100 files). Show all

Unified · Split

git-diff/tests/tree/mod.rs+2−2
@@ -25,7 +25,7 @@ mod changes { · 24 unmodified lines
25 ) -> crate::Result<TreeRefIter<'a>> {25 ) -> crate::Result<TreeRefIter<'a>> {
26 let tree_id = db26 let tree_id = db
27 .try_find(commit, buf)?27 .try_find(commit, buf)?
28 .ok_or_else(|| format!("start commit {:?} to be present", commit))?28 .ok_or_else(|| format!("start commit {commit:?} to be present"))?
29 .029 .0
30 .decode()?30 .decode()?
31 .into_commit()31 .into_commit()
@@ -66,7 +66,7 @@ mod changes { · 34 unmodified lines
66 let (main_tree_id, parent_commit_id) = {66 let (main_tree_id, parent_commit_id) = {
67 let commit = db67 let commit = db
68 .try_find(commit_id, &mut buf)?68 .try_find(commit_id, &mut buf)?
69 .ok_or_else(|| format!("start commit {:?} to be present", commit_id))?69 .ok_or_else(|| format!("start commit {commit_id:?} to be present"))?
70 .070 .0
71 .decode()?71 .decode()?
72 .into_commit()72 .into_commit()