From 3f992c45d3d5481fdb89c0dc82a1355ccb54ef33 Mon Sep 17 00:00:00 2001 From: umr1352 Date: Wed, 11 Dec 2024 17:14:06 +0100 Subject: [PATCH] fix CI errors --- identity_core/src/common/string_or_url.rs | 5 +++-- identity_credential/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/identity_core/src/common/string_or_url.rs b/identity_core/src/common/string_or_url.rs index 99f4e57f7..11e4e5dff 100644 --- a/identity_core/src/common/string_or_url.rs +++ b/identity_core/src/common/string_or_url.rs @@ -1,6 +1,7 @@ // Copyright 2020-2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +use std::convert::Infallible; use std::fmt::Display; use std::str::FromStr; @@ -21,7 +22,7 @@ pub enum StringOrUrl { impl StringOrUrl { /// Parses a [`StringOrUrl`] from a string. - pub fn parse(s: &str) -> Result { + pub fn parse(s: &str) -> Result { s.parse() } /// Returns a [`Url`] reference if `self` is [`StringOrUrl::Url`]. @@ -68,7 +69,7 @@ impl Display for StringOrUrl { impl FromStr for StringOrUrl { // Cannot fail. - type Err = (); + type Err = Infallible; fn from_str(s: &str) -> Result { Ok( s.parse::() diff --git a/identity_credential/Cargo.toml b/identity_credential/Cargo.toml index 91ff18c97..8aae0a2c2 100644 --- a/identity_credential/Cargo.toml +++ b/identity_credential/Cargo.toml @@ -43,9 +43,9 @@ zkryptium = { workspace = true, optional = true } anyhow = "1.0.62" identity_eddsa_verifier = { path = "../identity_eddsa_verifier", default-features = false, features = ["ed25519"] } iota-crypto = { version = "0.23.2", default-features = false, features = ["ed25519", "std", "random"] } +josekit = "0.8" proptest = { version = "1.4.0", default-features = false, features = ["std"] } tokio = { version = "1.35.0", default-features = false, features = ["rt-multi-thread", "macros"] } -josekit = "0.8" [package.metadata.docs.rs] # To build locally: