Showing the changes to git-diff (2 of 100 files). Show all
Unified · Split
| @@ -81,8 +81,7 @@ mod tests { · 80 unmodified lines | ||
| 81 | 81 | let actual = std::mem::size_of::<Change>(); |
| 82 | 82 | assert!( |
| 83 | 83 | 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" | |
| 86 | 85 | ) |
| 87 | 86 | } |
| 88 | 87 | } |
| @@ -25,7 +25,7 @@ mod changes { · 24 unmodified lines | ||
| 25 | 25 | ) -> crate::Result<TreeRefIter<'a>> { |
| 26 | 26 | let tree_id = db |
| 27 | 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 | 29 | .0 |
| 30 | 30 | .decode()? |
| 31 | 31 | .into_commit() |
| @@ -66,7 +66,7 @@ mod changes { · 34 unmodified lines | ||
| 66 | 66 | let (main_tree_id, parent_commit_id) = { |
| 67 | 67 | let commit = db |
| 68 | 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 | 70 | .0 |
| 71 | 71 | .decode()? |
| 72 | 72 | .into_commit() |