Skip to content

Commit

Permalink
annoying clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Sep 26, 2024
1 parent 26fe35d commit 113d991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/trie/trie/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct Proof<T, H> {
}

impl<T, H> Proof<T, H> {
/// Create a new [Proof] instance.
/// Create a new [`Proof`] instance.
pub fn new(t: T, h: H) -> Self {
Self {
trie_cursor_factory: t,
Expand Down Expand Up @@ -155,12 +155,12 @@ pub struct StorageProof<T, H> {
}

impl<T, H> StorageProof<T, H> {
/// Create a new [StorageProof] instance.
/// Create a new [`StorageProof`] instance.
pub fn new(t: T, h: H, address: Address) -> Self {
Self::new_hashed(t, h, keccak256(address))
}

/// Create a new [StorageProof] instance with hashed address.
/// Create a new [`StorageProof`] instance with hashed address.
pub fn new_hashed(t: T, h: H, hashed_address: B256) -> Self {
Self {
trie_cursor_factory: t,
Expand Down

0 comments on commit 113d991

Please sign in to comment.