Skip to content

Commit a616f90

Browse files
committed
fix: update rust-toolchain
fix: all required clippy updates
1 parent 6e53c05 commit a616f90

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

fr32/src/padding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ fn clear_right_bits(byte: &mut u8, offset: usize) {
539539
*(byte) &= !((1 << offset) - 1)
540540
}
541541

542-
/** Padding process.
542+
/* Padding process.
543543
544544
Read a `source` of raw byte-aligned data, pad it in a bit stream and
545545
write a byte-aligned version of it in the `target`. The `target` needs

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.81.0
1+
1.83.0

storage-proofs-core/benches/blake2s.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct Blake2sExample<'a> {
1616
data: &'a [Option<bool>],
1717
}
1818

19-
impl<'a> Circuit<Fr> for Blake2sExample<'a> {
19+
impl Circuit<Fr> for Blake2sExample<'_> {
2020
fn synthesize<CS: ConstraintSystem<Fr>>(self, cs: &mut CS) -> Result<(), SynthesisError> {
2121
let data: Vec<Boolean> = self
2222
.data

storage-proofs-core/benches/sha256.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct Sha256Example<'a> {
1616
data: &'a [Option<bool>],
1717
}
1818

19-
impl<'a> Circuit<Fr> for Sha256Example<'a> {
19+
impl Circuit<Fr> for Sha256Example<'_> {
2020
fn synthesize<CS: ConstraintSystem<Fr>>(self, cs: &mut CS) -> Result<(), SynthesisError> {
2121
let data: Vec<Boolean> = self
2222
.data

storage-proofs-core/benches/xor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct XorExample<'a> {
1414
data: &'a [Option<bool>],
1515
}
1616

17-
impl<'a> Circuit<Fr> for XorExample<'a> {
17+
impl Circuit<Fr> for XorExample<'_> {
1818
fn synthesize<CS: ConstraintSystem<Fr>>(self, cs: &mut CS) -> Result<(), SynthesisError> {
1919
let key: Vec<Boolean> = self
2020
.key

storage-proofs-core/src/data.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ enum RawData<'a> {
2121
Mmap(MmapMut),
2222
}
2323

24-
impl<'a> Deref for RawData<'a> {
24+
impl Deref for RawData<'_> {
2525
type Target = [u8];
2626

2727
fn deref(&self) -> &Self::Target {
@@ -32,7 +32,7 @@ impl<'a> Deref for RawData<'a> {
3232
}
3333
}
3434

35-
impl<'a> DerefMut for RawData<'a> {
35+
impl DerefMut for RawData<'_> {
3636
fn deref_mut(&mut self) -> &mut Self::Target {
3737
match self {
3838
RawData::Slice(ref mut raw) => raw,
@@ -52,7 +52,7 @@ impl<'a> From<&'a mut [u8]> for Data<'a> {
5252
}
5353
}
5454

55-
impl<'a> From<(MmapMut, PathBuf)> for Data<'a> {
55+
impl From<(MmapMut, PathBuf)> for Data<'_> {
5656
fn from(raw: (MmapMut, PathBuf)) -> Self {
5757
let len = raw.0.len();
5858
Data {
@@ -63,7 +63,7 @@ impl<'a> From<(MmapMut, PathBuf)> for Data<'a> {
6363
}
6464
}
6565

66-
impl<'a> AsRef<[u8]> for Data<'a> {
66+
impl AsRef<[u8]> for Data<'_> {
6767
fn as_ref(&self) -> &[u8] {
6868
match self.raw {
6969
Some(ref raw) => raw,
@@ -72,7 +72,7 @@ impl<'a> AsRef<[u8]> for Data<'a> {
7272
}
7373
}
7474

75-
impl<'a> AsMut<[u8]> for Data<'a> {
75+
impl AsMut<[u8]> for Data<'_> {
7676
fn as_mut(&mut self) -> &mut [u8] {
7777
match self.raw {
7878
Some(ref mut raw) => raw,

storage-proofs-porep/src/stacked/vanilla/params.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ where
119119
}
120120
}
121121

122-
impl<'a, Tree> From<&'a PublicParams<Tree>> for PublicParams<Tree>
122+
impl<Tree> From<&PublicParams<Tree>> for PublicParams<Tree>
123123
where
124124
Tree: MerkleTreeTrait,
125125
{

storage-proofs-porep/src/stacked/vanilla/proof_scheme.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use crate::stacked::vanilla::{
1313
proof::StackedDrg,
1414
};
1515

16-
impl<'a, 'c, Tree: 'static + MerkleTreeTrait, G: 'static + Hasher> ProofScheme<'a>
17-
for StackedDrg<'c, Tree, G>
16+
impl<Tree: 'static + MerkleTreeTrait, G: 'static + Hasher> ProofScheme<'_>
17+
for StackedDrg<'_, Tree, G>
1818
{
1919
type PublicParams = PublicParams<Tree>;
2020
type SetupParams = SetupParams;

storage-proofs-porep/src/stacked/vanilla/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct UnsafeSlice<'a, T> {
1515
len: usize,
1616
}
1717

18-
unsafe impl<'a, T> Sync for UnsafeSlice<'a, T> {}
18+
unsafe impl<T> Sync for UnsafeSlice<'_, T> {}
1919

2020
impl<'a, T> UnsafeSlice<'a, T> {
2121
/// Takes mutable slice, to ensure that `UnsafeSlice` is the only user of this memory, until it gets dropped.

storage-proofs-update/src/compound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ where
3131
}
3232
}
3333

34-
impl<'a, TreeR> CompoundProof<'a, EmptySectorUpdate<TreeR>, EmptySectorUpdateCircuit<TreeR>>
34+
impl<TreeR> CompoundProof<'_, EmptySectorUpdate<TreeR>, EmptySectorUpdateCircuit<TreeR>>
3535
for EmptySectorUpdateCompound<TreeR>
3636
where
3737
TreeR: 'static + MerkleTreeTrait<Hasher = TreeRHasher>,

storage-proofs-update/src/poseidon/compound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
}
3737
}
3838

39-
impl<'a, TreeR> CompoundProof<'a, EmptySectorUpdate<TreeR>, EmptySectorUpdateCircuit<TreeR>>
39+
impl<TreeR> CompoundProof<'_, EmptySectorUpdate<TreeR>, EmptySectorUpdateCircuit<TreeR>>
4040
for EmptySectorUpdateCompound<TreeR>
4141
where
4242
TreeR: 'static + MerkleTreeTrait<Hasher = TreeRHasher>,

storage-proofs-update/src/poseidon/vanilla.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ where
9797
_tree_r: PhantomData<TreeR>,
9898
}
9999

100-
impl<'a, TreeR> ProofScheme<'a> for EmptySectorUpdate<TreeR>
100+
impl<TreeR> ProofScheme<'_> for EmptySectorUpdate<TreeR>
101101
where
102102
TreeR: 'static + MerkleTreeTrait<Hasher = TreeRHasher>,
103103
{

storage-proofs-update/src/vanilla.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ where
392392
_tree_r: PhantomData<TreeR>,
393393
}
394394

395-
impl<'a, TreeR> ProofScheme<'a> for EmptySectorUpdate<TreeR>
395+
impl<TreeR> ProofScheme<'_> for EmptySectorUpdate<TreeR>
396396
where
397397
TreeR: 'static + MerkleTreeTrait<Hasher = TreeRHasher>,
398398
{

0 commit comments

Comments
 (0)