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 gitoxide-core/src/commitgraph (1 of 289 files). Show all

Unified · Split

gitoxide-core/src/commitgraph/verify.rs+1−1
@@ -39,7 +39,7 @@ pub(crate) mod function { · 38 unmodified lines
3939 W1: io::Write,
4040 W2: io::Write,
4141 {
42− let g = Graph::at(path).with_context(|| "Could not open commit graph")?;
42+ let g = Graph::at(path.as_ref()).with_context(|| "Could not open commit graph")?;
4343
4444 #[allow(clippy::unnecessary_wraps, unknown_lints)]
4545 fn noop_processor(_commit: &gix::commitgraph::file::Commit<'_>) -> std::result::Result<(), std::fmt::Error> {