Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 30, 2023
1 parent 3266733 commit 48ce266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal/incompatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl<P: Package, VS: VersionSet> fmt::Display for Incompatibility<P, VS> {
write!(
f,
"{}",
DefaultStringReportFormatter::default().format_terms(&self.package_terms.as_map())
DefaultStringReportFormatter.format_terms(&self.package_terms.as_map())
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ impl<P: Package, VS: VersionSet> Reporter<P, VS> for DefaultStringReporter {
type Output = String;

fn report(derivation_tree: &DerivationTree<P, VS>) -> Self::Output {
let formatter = DefaultStringReportFormatter::default();
let formatter = DefaultStringReportFormatter;
match derivation_tree {
DerivationTree::External(external) => formatter.format_external(external),
DerivationTree::Derived(derived) => {
Expand All @@ -583,7 +583,7 @@ impl<P: Package, VS: VersionSet> Reporter<P, VS> for DefaultStringReporter {
formatter: &impl ReportFormatter<P, VS, Output = Self::Output>,
) -> Self::Output {
match derivation_tree {
DerivationTree::External(external) => formatter.format_external(&external),
DerivationTree::External(external) => formatter.format_external(external),
DerivationTree::Derived(derived) => {
let mut reporter = Self::new();
reporter.build_recursive(derived, formatter);
Expand Down

0 comments on commit 48ce266

Please sign in to comment.