revset: remove redundant boxing from evaluated children node

Just spotted while moving codes around. This wouldn't matter in practice.
This commit is contained in:
Yuya Nishihara 2023-04-19 20:13:21 +09:00
parent 36e7afe0db
commit d9d2b405e1

View file

@ -593,7 +593,7 @@ impl<'index> EvaluationContext<'index> {
self.walk_ancestors_until_roots(&*root_set, &*head_set);
let roots: HashSet<_> = root_positions.into_iter().collect();
let candidates = Box::new(RevWalkRevset { walk });
let predicate = pure_predicate_fn(move |entry| {
let predicate = PurePredicateFn(move |entry: &IndexEntry| {
entry
.parent_positions()
.iter()