From dff382b8e250ff57e9cfd64005c30d3822841b0b Mon Sep 17 00:00:00 2001 From: anim001k <140460766+anim001k@users.noreply.github.com> Date: Fri, 31 Oct 2025 17:06:06 +0100 Subject: [PATCH] fix: Inline value match in SparseTrie::find_leaf to remove redundant wrapper (#19138) Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com> --- crates/trie/sparse/src/trie.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/trie/sparse/src/trie.rs b/crates/trie/sparse/src/trie.rs index 891b718693..500b642cd1 100644 --- a/crates/trie/sparse/src/trie.rs +++ b/crates/trie/sparse/src/trie.rs @@ -974,6 +974,7 @@ impl SparseTrieInterface for SerialSparseTrie { expected_value: Option<&Vec>, ) -> Result { // Helper function to check if a value matches the expected value + #[inline] fn check_value_match( actual_value: &Vec, expected_value: Option<&Vec>,