Skip to content

Commit

Permalink
refactor: allow clippy type_complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
mpizenberg committed Aug 8, 2021
1 parent 4859312 commit 7727938
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ pub trait DependencyProvider<P: Package, VS: VersionSet> {
/// of the available versions in preference order for any package.
///
/// Note: the type `T` ensures that this returns an item from the `packages` argument.
#[allow(clippy::type_complexity)]
fn choose_package_version<T: Borrow<P>, U: Borrow<VS>>(
&self,
potential_packages: impl Iterator<Item = (T, U)>,
Expand Down Expand Up @@ -363,6 +364,7 @@ impl<P: Package, VS: VersionSet> OfflineDependencyProvider<P, VS> {
/// Packages are picked with the fewest versions contained in the constraints first.
/// Versions are picked with the newest versions first.
impl<P: Package, VS: VersionSet> DependencyProvider<P, VS> for OfflineDependencyProvider<P, VS> {
#[allow(clippy::type_complexity)]
fn choose_package_version<T: Borrow<P>, U: Borrow<VS>>(
&self,
potential_packages: impl Iterator<Item = (T, U)>,
Expand Down

0 comments on commit 7727938

Please sign in to comment.