Skip to content

Commit

Permalink
fix wasm compilation errors, clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Dec 12, 2024
1 parent 035b50f commit f2c0704
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bindings/wasm/src/common/imported_document_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl From<&ArrayIToCoreDocument> for Vec<ImportedDocumentLock> {

pub(crate) struct ImportedDocumentReadGuard<'a>(tokio::sync::RwLockReadGuard<'a, CoreDocument>);

impl<'a> AsRef<CoreDocument> for ImportedDocumentReadGuard<'a> {
impl AsRef<CoreDocument> for ImportedDocumentReadGuard<'_> {
fn as_ref(&self) -> &CoreDocument {
self.0.as_ref()
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<E: std::error::Error> Display for ErrorMessage<'_, E> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
error_chain_fmt(self.0, f)
}
Expand Down
4 changes: 1 addition & 3 deletions identity_credential/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, E = Error> = ::core::result::Result<T, E>;

Expand Down Expand Up @@ -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),
}
2 changes: 1 addition & 1 deletion identity_credential/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f2c0704

Please sign in to comment.