History

fix!: use `dyn` trait where possible.

This reduces compile time due to avoiding duplication.

Sebastian Thiel committed 3 years ago

Commit 072ee321 parent 24dd870289 files · +1694 −1641Browse files

Showing the changes to gix-commitgraph/tests/commitgraph.rs (1 of 289 files). Show all

Unified · Split

gix-commitgraph/tests/commitgraph.rs+2−1
@@ -80,7 +80,8 @@ pub fn graph_and_expected_named( · 79 unmodified lines
8080 .expect("script succeeds all the time")
8181 .join(name);
8282 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");
8485 (cg, expected)
8586 }
8687