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:
anim001k
2025-10-31 17:06:06 +01:00
committed by GitHub
parent d8729a9d2c
commit dff382b8e2

View File

@@ -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>>,