mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 23:38:10 -05:00
fix: Inline value match in SparseTrie::find_leaf to remove redundant wrapper (#19138)
Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
This commit is contained in:
@@ -974,6 +974,7 @@ impl SparseTrieInterface for SerialSparseTrie {
|
||||
expected_value: Option<&Vec<u8>>,
|
||||
) -> Result<LeafLookup, LeafLookupError> {
|
||||
// Helper function to check if a value matches the expected value
|
||||
#[inline]
|
||||
fn check_value_match(
|
||||
actual_value: &Vec<u8>,
|
||||
expected_value: Option<&Vec<u8>>,
|
||||
|
||||
Reference in New Issue
Block a user