This reduces compile time due to avoiding duplication.
Showing the changes to gitoxide-core/src/commitgraph (1 of 289 files). Show all
Unified · Split
| @@ -39,7 +39,7 @@ pub(crate) mod function { · 38 unmodified lines | ||
| 39 | 39 | W1: io::Write, |
| 40 | 40 | W2: io::Write, |
| 41 | 41 | { |
| 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")?; | |
| 43 | 43 | |
| 44 | 44 | #[allow(clippy::unnecessary_wraps, unknown_lints)] |
| 45 | 45 | fn noop_processor(_commit: &gix::commitgraph::file::Commit<'_>) -> std::result::Result<(), std::fmt::Error> { |