From 554ebc364e0c40316a345238d4c1ca6786db0ac1 Mon Sep 17 00:00:00 2001 From: ccamel Date: Tue, 27 Feb 2024 13:38:47 +0100 Subject: [PATCH] style(dataverse): polish code --- contracts/okp4-dataverse/src/registrar/credential.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/okp4-dataverse/src/registrar/credential.rs b/contracts/okp4-dataverse/src/registrar/credential.rs index be95b4ad..c0d4e1c4 100644 --- a/contracts/okp4-dataverse/src/registrar/credential.rs +++ b/contracts/okp4-dataverse/src/registrar/credential.rs @@ -29,7 +29,7 @@ impl<'a> DataverseCredential<'a> { "credential is expected to have exactly one type".to_string(), ) }) - .map(|t| *t) + .copied() } fn extract_vc_claim(