Showing the changes to git-diff/tests (1 of 100 files). Show all
Unified · Split
| @@ -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() |