Skip to content

Commit

Permalink
fix: make the conversion more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyaasir committed Jun 10, 2024
1 parent c69566c commit 1a2882e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions identity_credential/src/credential/issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ impl Issuer {
}
}
}
impl<T> From<T> for Issuer
where
T: Into<Url>,
{
fn from(other: T) -> Self {
Self::Url(other.into())

impl From<Url> for Issuer {
fn from(other: Url) -> Self {
Self::Url(other)
}
}

Expand Down

0 comments on commit 1a2882e

Please sign in to comment.