Skip to content

Commit 7727938

Browse files
committed
refactor: allow clippy type_complexity
1 parent 4859312 commit 7727938

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/solver.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ pub trait DependencyProvider<P: Package, VS: VersionSet> {
239239
/// of the available versions in preference order for any package.
240240
///
241241
/// Note: the type `T` ensures that this returns an item from the `packages` argument.
242+
#[allow(clippy::type_complexity)]
242243
fn choose_package_version<T: Borrow<P>, U: Borrow<VS>>(
243244
&self,
244245
potential_packages: impl Iterator<Item = (T, U)>,
@@ -363,6 +364,7 @@ impl<P: Package, VS: VersionSet> OfflineDependencyProvider<P, VS> {
363364
/// Packages are picked with the fewest versions contained in the constraints first.
364365
/// Versions are picked with the newest versions first.
365366
impl<P: Package, VS: VersionSet> DependencyProvider<P, VS> for OfflineDependencyProvider<P, VS> {
367+
#[allow(clippy::type_complexity)]
366368
fn choose_package_version<T: Borrow<P>, U: Borrow<VS>>(
367369
&self,
368370
potential_packages: impl Iterator<Item = (T, U)>,

0 commit comments

Comments
 (0)