Skip to content

Commit

Permalink
fix: clippy complain
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai committed Dec 5, 2023
1 parent 3e70593 commit 2156c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/host/mpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn mpt_from_proof(proof_nodes: &[MptNode]) -> Result<MptNode> {

/// Verifies that the given proof is a valid proof of exclusion for the given key.
pub fn is_not_included(key: &[u8], proof_nodes: &[MptNode]) -> Result<bool> {
let proof_trie = mpt_from_proof(&proof_nodes).context("invalid trie")?;
let proof_trie = mpt_from_proof(proof_nodes).context("invalid trie")?;
// for valid proofs, the get must not fail
let value = proof_trie.get(key).context("invalid trie")?;

Expand Down

0 comments on commit 2156c9d

Please sign in to comment.