Skip to content

Commit 0761898

Browse files
committed
fix: auto fix of rust 1.83 clippy warnings
using `cargo clippy --all-targets --all-features --fix`
1 parent e38a254 commit 0761898

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

internal/mithril-persistence/src/sqlite/cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<'a, T> EntityCursor<'a, T> {
2020
}
2121
}
2222

23-
impl<'a, T> Iterator for EntityCursor<'a, T>
23+
impl<T> Iterator for EntityCursor<'_, T>
2424
where
2525
T: SqLiteEntity,
2626
{

mithril-common/src/crypto_helper/merkle_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ impl<S: MKTreeStorer> MKTree<S> {
426426
.map(|(leaf_position, _leaf)| *leaf_position)
427427
.collect(),
428428
)?;
429-
return Ok(MKProof {
429+
Ok(MKProof {
430430
inner_root: Arc::new(self.compute_root()?),
431431
inner_leaves,
432432
inner_proof_size: proof.mmr_size(),
433433
inner_proof_items: proof.proof_items().to_vec(),
434-
});
434+
})
435435
}
436436
}
437437

mithril-common/src/test_utils/certificate_chain_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl<'a> CertificateChainBuilder<'a> {
481481
}
482482
}
483483

484-
impl<'a> Default for CertificateChainBuilder<'a> {
484+
impl Default for CertificateChainBuilder<'_> {
485485
fn default() -> Self {
486486
Self::new()
487487
}

0 commit comments

Comments
 (0)