Skip to content

Commit b571bea

Browse files
committed
[📎] Fix clippy
1 parent 8132fbe commit b571bea

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

‎ecdsa_fun/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ std = ["alloc"]
4242
alloc = ["secp256kfun/alloc", "sigma_fun?/alloc" ]
4343
serde = ["secp256kfun/serde","sigma_fun?/serde"]
4444
adaptor = ["dep:sigma_fun", "dep:bincode", "dep:rand_chacha"]
45+
bincode = [ "secp256kfun/bincode", "dep:bincode" ]
4546
proptest = ["secp256kfun/proptest"]
4647

4748

‎schnorr_fun/tests/bip340.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static BIP340_CSV: &str = include_str!("./bip340-test-vectors.csv");
1414

1515
struct AuxRng<'a>(&'a [u8]);
1616

17-
impl<'a> rand_core::RngCore for AuxRng<'a> {
17+
impl rand_core::RngCore for AuxRng<'_> {
1818
fn next_u32(&mut self) -> u32 {
1919
rand_core::impls::next_u32_via_fill(self)
2020
}
@@ -30,7 +30,7 @@ impl<'a> rand_core::RngCore for AuxRng<'a> {
3030
}
3131
}
3232

33-
impl<'a> NonceRng for AuxRng<'a> {
33+
impl NonceRng for AuxRng<'_> {
3434
fn fill_bytes(&self, bytes: &mut [u8]) {
3535
bytes.copy_from_slice(self.0)
3636
}

‎secp256kfun/src/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl HashInto for u8 {
109109
}
110110
}
111111

112-
impl<'a, T: HashInto + Clone> HashInto for &'a T {
112+
impl<T: HashInto + Clone> HashInto for &T {
113113
fn hash_into(self, hash: &mut impl digest::Update) {
114114
self.clone().hash_into(hash)
115115
}

‎secp256kfun/src/marker/zero_choice.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ impl ZeroChoice for NonZero {
5757
}
5858

5959
/// A trait to figure out whether the result of a multiplication should be [`Zero`] or [`NonZero`] at compile time.
60-
6160
pub trait DecideZero<ZZ> {
6261
/// If both arguments are `NonZero` then `Out` will be `NonZero`, otherwise `Zero`.
6362
type Out;

‎secp256kfun/src/slice.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ pub struct Slice<'a, S = Public> {
2424
secrecy: PhantomData<S>,
2525
}
2626

27-
impl<'a, S> Clone for Slice<'a, S> {
27+
impl<S> Clone for Slice<'_, S> {
2828
fn clone(&self) -> Self {
2929
*self
3030
}
3131
}
3232

33-
impl<'a, S> Copy for Slice<'a, S> {}
33+
impl<S> Copy for Slice<'_, S> {}
3434

35-
impl<'a, 'b, S1, S2> PartialEq<Slice<'b, S2>> for Slice<'a, S1> {
35+
impl<'b, S1, S2> PartialEq<Slice<'b, S2>> for Slice<'_, S1> {
3636
fn eq(&self, rhs: &Slice<'b, S2>) -> bool {
3737
// by default do comparison constant time
3838
self.inner.ct_eq(rhs.inner).into()
@@ -75,7 +75,7 @@ impl<'a, S> From<&'a [u8]> for Slice<'a, S> {
7575
}
7676
}
7777

78-
impl<'a, S> HashInto for Slice<'a, S> {
78+
impl<S> HashInto for Slice<'_, S> {
7979
fn hash_into(self, hash: &mut impl digest::Update) {
8080
hash.update(self.inner)
8181
}

0 commit comments

Comments
 (0)