Skip to content

Commit 5402030

Browse files
refactor: make clippy happy.
1 parent 38085fb commit 5402030

20 files changed

Lines changed: 93 additions & 92 deletions

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ zkryptium = "0.2.2" # BBS
8383
log = "0.4.21"
8484
async-std = "1.9"
8585
async-trait = "0.1.68"
86-
thiserror = "1.0.40"
86+
thiserror = "2.0"
8787
chrono = "0.4.24"
8888
iref = "3.2.2"
8989
static-iref = "3.0"

crates/claims/crates/data-integrity/core/src/hashing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(deprecated)] // TODO upgrade `digest` crate when possible.
12
use digest::{
23
consts::{U32, U48},
34
generic_array::{ArrayLength, GenericArray},

crates/claims/crates/data-integrity/suites/src/suites/dif/ecdsa_secp256k1_recovery_signature_2020.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl StandardCryptographicSuite for EcdsaSecp256k1RecoverySignature2020 {
3636

3737
type ProofOptions = ();
3838

39-
fn type_(&self) -> TypeRef {
39+
fn type_(&self) -> TypeRef<'_> {
4040
TypeRef::Other(Self::NAME)
4141
}
4242
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/aleo_signature_2021.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl StandardCryptographicSuite for AleoSignature2021 {
8383

8484
type ProofOptions = ();
8585

86-
fn type_(&self) -> TypeRef {
86+
fn type_(&self) -> TypeRef<'_> {
8787
TypeRef::Other(Self::NAME)
8888
}
8989
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/eip712_signature_2021.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl StandardCryptographicSuite for Eip712Signature2021 {
9595

9696
type ProofOptions = ();
9797

98-
fn type_(&self) -> TypeRef {
98+
fn type_(&self) -> TypeRef<'_> {
9999
TypeRef::Other(Self::NAME)
100100
}
101101
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/ethereum_personal_signature_2021.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl StandardCryptographicSuite for EthereumPersonalSignature2021 {
5656

5757
type ProofOptions = ();
5858

59-
fn type_(&self) -> TypeRef {
59+
fn type_(&self) -> TypeRef<'_> {
6060
TypeRef::Other(Self::NAME)
6161
}
6262
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/ethereum_personal_signature_2021/v0_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl StandardCryptographicSuite for EthereumPersonalSignature2021v0_1 {
3131

3232
type ProofOptions = ();
3333

34-
fn type_(&self) -> TypeRef {
34+
fn type_(&self) -> TypeRef<'_> {
3535
TypeRef::Other(Self::NAME)
3636
}
3737
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/solana_signature_2021.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl StandardCryptographicSuite for SolanaSignature2021 {
6565

6666
type ProofOptions = ();
6767

68-
fn type_(&self) -> TypeRef {
68+
fn type_(&self) -> TypeRef<'_> {
6969
TypeRef::Other(Self::NAME)
7070
}
7171
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/tezos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Options {
9999
}
100100

101101
impl RecoverPublicJwk for Options {
102-
fn public_jwk(&self) -> Cow<JWK> {
102+
fn public_jwk(&self) -> Cow<'_, JWK> {
103103
Cow::Borrowed(&self.public_key_jwk)
104104
}
105105
}

crates/claims/crates/data-integrity/suites/src/suites/unspecified/tezos/ed25519_blake2b_digest_size20_base58_check_encoded_signature_2021.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl StandardCryptographicSuite for Ed25519BLAKE2BDigestSize20Base58CheckEncoded
3636

3737
type ProofOptions = Options;
3838

39-
fn type_(&self) -> TypeRef {
39+
fn type_(&self) -> TypeRef<'_> {
4040
TypeRef::Other(Self::NAME)
4141
}
4242
}

0 commit comments

Comments
 (0)