Skip to content

Commit

Permalink
Fix clippy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed May 30, 2024
1 parent 37a9b40 commit 83d1ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/verification-methods/core/src/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ pub enum ReferenceOrOwnedRef<'a, M> {

impl<'a, M: VerificationMethod> ReferenceOrOwnedRef<'a, M> {
pub fn cloned(&self) -> ReferenceOrOwned<M> {
match self {
&Self::Reference(iri) => ReferenceOrOwned::Reference(iri.to_owned()),
&Self::Owned(m) => ReferenceOrOwned::Owned(m.clone()),
match *self {
Self::Reference(iri) => ReferenceOrOwned::Reference(iri.to_owned()),
Self::Owned(m) => ReferenceOrOwned::Owned(m.clone()),
}
}

Expand Down

0 comments on commit 83d1ddc

Please sign in to comment.