Skip to content

Commit

Permalink
Merge pull request #172 from MarcoIeni/package-eq
Browse files Browse the repository at this point in the history
implement Eq for Package
  • Loading branch information
oli-obk committed Feb 16, 2022
2 parents d772fd3 + eb30729 commit c3e1aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dependency.rs
Expand Up @@ -47,7 +47,7 @@ where
Deserialize::deserialize(d).map(|x: Option<_>| x.unwrap_or_default())
}

#[derive(Clone, Serialize, Deserialize, Debug)]
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "builder", derive(Builder))]
#[non_exhaustive]
#[cfg_attr(feature = "builder", builder(pattern = "owned", setter(into)))]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -251,7 +251,7 @@ pub struct DepKindInfo {
pub target: Option<dependency::Platform>,
}

#[derive(Clone, Serialize, Deserialize, Debug)]
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "builder", derive(Builder))]
#[non_exhaustive]
#[cfg_attr(feature = "builder", builder(pattern = "owned", setter(into)))]
Expand Down Expand Up @@ -375,7 +375,7 @@ impl Package {
}

/// The source of a package such as crates.io.
#[derive(Clone, Serialize, Deserialize, Debug)]
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
#[serde(transparent)]
pub struct Source {
/// The underlying string representation of a source.
Expand Down

0 comments on commit c3e1aac

Please sign in to comment.