Showing the changes to git-diff (2 of 100 files). Show all
Unified · Split
| @@ -81,8 +81,7 @@ mod tests { · 80 unmodified lines | |||
| 81 | let actual = std::mem::size_of::<Change>(); | 81 | let actual = std::mem::size_of::<Change>(); |
| 82 | assert!( | 82 | assert!( |
| 83 | actual <= 46, | 83 | actual <= 46, |
| 84 | "{} <= 46: this type shouldn't grow without us knowing", | 84 | "{actual} <= 46: this type shouldn't grow without us knowing" |
| 85 | actual | ||
| 86 | ) | 85 | ) |
| 87 | } | 86 | } |
| 88 | } | 87 | } |
| @@ -25,7 +25,7 @@ mod changes { · 24 unmodified lines | |||
| 25 | ) -> crate::Result<TreeRefIter<'a>> { | 25 | ) -> crate::Result<TreeRefIter<'a>> { |
| 26 | let tree_id = db | 26 | 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 | .0 | 29 | .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 = db | 67 | 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 | .0 | 70 | .0 |
| 71 | .decode()? | 71 | .decode()? |
| 72 | .into_commit() | 72 | .into_commit() |