From 1a2882e920dd11027b0bbe0412cce19085645f35 Mon Sep 17 00:00:00 2001 From: Yasir Date: Mon, 10 Jun 2024 17:16:20 +0300 Subject: [PATCH] fix: make the conversion more explicit --- identity_credential/src/credential/issuer.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/identity_credential/src/credential/issuer.rs b/identity_credential/src/credential/issuer.rs index 23754579dd..e9385e115d 100644 --- a/identity_credential/src/credential/issuer.rs +++ b/identity_credential/src/credential/issuer.rs @@ -40,12 +40,10 @@ impl Issuer { } } } -impl From for Issuer -where - T: Into, -{ - fn from(other: T) -> Self { - Self::Url(other.into()) + +impl From for Issuer { + fn from(other: Url) -> Self { + Self::Url(other) } }