mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore: elide lifetimes in iter_sub_trie_targets (#22256)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
883e9ae8cc
commit
7f00ebfafe
@@ -98,9 +98,9 @@ impl<'a> SubTrieTargets<'a> {
|
||||
|
||||
/// Given a set of [`Target`]s, returns an iterator over those same [`Target`]s chunked by the
|
||||
/// sub-tries they apply to within the overall trie.
|
||||
pub(crate) fn iter_sub_trie_targets<'a>(
|
||||
targets: &'a mut [Target],
|
||||
) -> impl Iterator<Item = SubTrieTargets<'a>> {
|
||||
pub(crate) fn iter_sub_trie_targets(
|
||||
targets: &mut [Target],
|
||||
) -> impl Iterator<Item = SubTrieTargets<'_>> {
|
||||
// First sort by the sub-trie prefix of each target, falling back to the `min_len` in cases
|
||||
// where the sub-trie prefixes are equal (to differentiate targets which match the root node and
|
||||
// those which don't).
|
||||
|
||||
Reference in New Issue
Block a user