diff --git a/bindings/wasm/src/common/imported_document_lock.rs b/bindings/wasm/src/common/imported_document_lock.rs index 4852ab216e..4452ce6dd2 100644 --- a/bindings/wasm/src/common/imported_document_lock.rs +++ b/bindings/wasm/src/common/imported_document_lock.rs @@ -79,7 +79,7 @@ impl From<&ArrayIToCoreDocument> for Vec { pub(crate) struct ImportedDocumentReadGuard<'a>(tokio::sync::RwLockReadGuard<'a, CoreDocument>); -impl<'a> AsRef for ImportedDocumentReadGuard<'a> { +impl AsRef for ImportedDocumentReadGuard<'_> { fn as_ref(&self) -> &CoreDocument { self.0.as_ref() } diff --git a/bindings/wasm/src/error.rs b/bindings/wasm/src/error.rs index 035e7838bf..34d4c98d8b 100644 --- a/bindings/wasm/src/error.rs +++ b/bindings/wasm/src/error.rs @@ -151,7 +151,7 @@ fn error_chain_fmt(e: &impl std::error::Error, f: &mut std::fmt::Formatter<'_>) struct ErrorMessage<'a, E: std::error::Error>(&'a E); -impl<'a, E: std::error::Error> Display for ErrorMessage<'a, E> { +impl Display for ErrorMessage<'_, E> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { error_chain_fmt(self.0, f) } diff --git a/identity_credential/src/error.rs b/identity_credential/src/error.rs index a5bbc1f86a..18b31d69c3 100644 --- a/identity_credential/src/error.rs +++ b/identity_credential/src/error.rs @@ -3,8 +3,6 @@ //! Errors that may occur when working with Verifiable Credentials. -use crate::sd_jwt_vc; - /// Alias for a `Result` with the error type [`Error`]. pub type Result = ::core::result::Result; @@ -85,5 +83,5 @@ pub enum Error { /// Failure of an SD-JWT VC operation. #[cfg(feature = "sd-jwt-vc")] #[error(transparent)] - SdJwtVc(#[from] sd_jwt_vc::Error), + SdJwtVc(#[from] crate::sd_jwt_vc::Error), } diff --git a/identity_credential/src/lib.rs b/identity_credential/src/lib.rs index 3c03954b85..236329ab4c 100644 --- a/identity_credential/src/lib.rs +++ b/identity_credential/src/lib.rs @@ -28,7 +28,7 @@ mod utils; pub mod validator; /// Implementation of the SD-JWT VC token specification. -// #[cfg(feature = "sd-jwt-vc")] +#[cfg(feature = "sd-jwt-vc")] pub mod sd_jwt_vc; pub use error::Error; diff --git a/identity_iota/Cargo.toml b/identity_iota/Cargo.toml index e77e68a151..cdddbcebc9 100644 --- a/identity_iota/Cargo.toml +++ b/identity_iota/Cargo.toml @@ -45,7 +45,7 @@ revocation-bitmap = [ status-list-2021 = ["revocation-bitmap", "identity_credential/status-list-2021"] # Enables support for the `Resolver`. -resolver = [] +resolver = ["dep:identity_resolver"] # Enables `Send` + `Sync` bounds for the storage traits. send-sync-storage = ["identity_storage/send-sync-storage"]