Skip to content

Commit

Permalink
Add docs to trait method
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 30, 2023
1 parent 83b547f commit 3266733
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ pub trait Reporter<P: Package, VS: VersionSet> {
type Output;

/// Generate a report from the derivation tree
/// describing the resolution failure.
/// describing the resolution failure using the default formatter.
fn report(derivation_tree: &DerivationTree<P, VS>) -> Self::Output;

/// Generate a report from the derivation tree
/// describing the resolution failure using a custom formatter.
fn report_with_formatter(
derivation_tree: &DerivationTree<P, VS>,
formatter: &impl ReportFormatter<P, VS, Output = Self::Output>,
Expand Down

0 comments on commit 3266733

Please sign in to comment.