This reduces compile time due to avoiding duplication.
Showing the changes to gix-commitgraph/tests/commitgraph.rs (1 of 289 files). Show all
Unified · Split
| @@ -80,7 +80,8 @@ pub fn graph_and_expected_named( · 79 unmodified lines | ||
| 80 | 80 | .expect("script succeeds all the time") |
| 81 | 81 | .join(name); |
| 82 | 82 | let expected = inspect_refs(&repo_dir, refs); |
| 83 | − let cg = Graph::from_info_dir(repo_dir.join(".git").join("objects").join("info")).expect("graph present and valid"); | |
| 83 | + let cg = | |
| 84 | + Graph::from_info_dir(&repo_dir.join(".git").join("objects").join("info")).expect("graph present and valid"); | |
| 84 | 85 | (cg, expected) |
| 85 | 86 | } |
| 86 | 87 | |