From 136a57f41481ddcedb8fdc0876db6637a8c61a2b Mon Sep 17 00:00:00 2001 From: Zanie Date: Thu, 7 Dec 2023 20:00:40 -0600 Subject: [PATCH] Lint --- crates/puffin-resolver/src/error.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/crates/puffin-resolver/src/error.rs b/crates/puffin-resolver/src/error.rs index a705928d9e81d..0548144d6929a 100644 --- a/crates/puffin-resolver/src/error.rs +++ b/crates/puffin-resolver/src/error.rs @@ -67,20 +67,19 @@ pub enum ResolveError { #[error("Retrieving dependencies of {package} {version} failed")] ErrorRetrievingDependencies { /// Package whose dependencies we want. - package: PubGrubPackage, + package: Box, /// Version of the package for which we want the dependencies. - version: PubGrubVersion, - /// Error raised by the implementer of - /// [DependencyProvider](crate::solver::DependencyProvider). + version: Box, + /// Error raised by the implementer of [DependencyProvider](crate::solver::DependencyProvider). source: Box, }, #[error("{package} {version} depends on itself")] SelfDependency { /// Package whose dependencies we want. - package: PubGrubPackage, + package: Box, /// Version of the package for which we want the dependencies. - version: PubGrubVersion, + version: Box, }, #[error("Decision making failed")] @@ -114,8 +113,8 @@ impl From>> f version, source, } => ResolveError::ErrorRetrievingDependencies { - package, - version, + package: Box::new(package), + version: Box::new(version), source, }, pubgrub::error::PubGrubError::Failure(inner) => ResolveError::Failure(inner), @@ -126,7 +125,10 @@ impl From>> f }) } pubgrub::error::PubGrubError::SelfDependency { package, version } => { - ResolveError::SelfDependency { package, version } + ResolveError::SelfDependency { + package: Box::new(package), + version: Box::new(version), + } } } }