Skip to content

Commit 58d45a2

Browse files
committed
Make large_enum_variant clippy happy
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent f630663 commit 58d45a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dist/dist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn components_missing_msg(cs: &[Component], manifest: &ManifestV2, toolchain: &s
8888
#[derive(Debug, ThisError)]
8989
enum DistError {
9090
#[error("{}", components_missing_msg(.0, .1, .2))]
91-
ToolchainComponentsMissing(Vec<Component>, ManifestV2, String),
91+
ToolchainComponentsMissing(Vec<Component>, Box<ManifestV2>, String),
9292
#[error("no release found for '{0}'")]
9393
MissingReleaseForToolchain(String),
9494
}
@@ -878,7 +878,7 @@ fn try_update_from_dist_<'a>(
878878
toolchain,
879879
}) => Err(anyhow!(DistError::ToolchainComponentsMissing(
880880
components.to_owned(),
881-
manifest.to_owned(),
881+
Box::new(manifest.to_owned()),
882882
toolchain.to_owned(),
883883
))),
884884
Some(_) | None => Err(err),

0 commit comments

Comments
 (0)