Skip to content

Commit

Permalink
fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Dec 11, 2024
1 parent 468809e commit 3f992c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions identity_core/src/common/string_or_url.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -21,7 +22,7 @@ pub enum StringOrUrl {

impl StringOrUrl {
/// Parses a [`StringOrUrl`] from a string.
pub fn parse(s: &str) -> Result<Self, ()> {
pub fn parse(s: &str) -> Result<Self, Infallible> {
s.parse()
}
/// Returns a [`Url`] reference if `self` is [`StringOrUrl::Url`].
Expand Down Expand Up @@ -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<Self, Self::Err> {
Ok(
s.parse::<Url>()
Expand Down
2 changes: 1 addition & 1 deletion identity_credential/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f992c4

Please sign in to comment.