History

thanks clippy

Sebastian Thiel committed 3 years ago

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

Showing the changes to git-diff (2 of 100 files). Show all

Unified · Split

2 files
  1. git-diff/src/tree/visit.rs +1 −2
  2. git-diff/tests/tree/mod.rs +2 −2
git-diff/src/tree/visit.rs+1−2
@@ -81,8 +81,7 @@ mod tests { · 80 unmodified lines
8181 let actual = std::mem::size_of::<Change>();
8282 assert!(
8383 actual <= 46,
84− "{} <= 46: this type shouldn't grow without us knowing",
85− actual
84+ "{actual} <= 46: this type shouldn't grow without us knowing"
8685 )
8786 }
8887 }
git-diff/tests/tree/mod.rs+2−2
@@ -25,7 +25,7 @@ mod changes { · 24 unmodified lines
2525 ) -> crate::Result<TreeRefIter<'a>> {
2626 let tree_id = db
2727 .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"))?
2929 .0
3030 .decode()?
3131 .into_commit()
@@ -66,7 +66,7 @@ mod changes { · 34 unmodified lines
6666 let (main_tree_id, parent_commit_id) = {
6767 let commit = db
6868 .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"))?
7070 .0
7171 .decode()?
7272 .into_commit()