diff --git a/src/cargo/core/package_id.rs b/src/cargo/core/package_id.rs index 4120f6779cc..7231c137251 100644 --- a/src/cargo/core/package_id.rs +++ b/src/cargo/core/package_id.rs @@ -18,7 +18,7 @@ lazy_static! { } /// Identifier for a specific version of a package in a specific source. -#[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] +#[derive(Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct PackageId { inner: &'static PackageIdInner, }