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
80 .expect("script succeeds all the time")80 .expect("script succeeds all the time")
81 .join(name);81 .join(name);
82 let expected = inspect_refs(&repo_dir, refs);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 (cg, expected)85 (cg, expected)
85}86}
86 87