Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Descendant selectors #33

Merged
merged 9 commits into from
Aug 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo fmt
  • Loading branch information
glyn committed Aug 5, 2022
commit 40d8d826d1bddf67173f3b15925fcbc477b516c7
6 changes: 3 additions & 3 deletions src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ impl Selector {
Selector::DescendantDotWildcard => {
Self::traverse(input, move |n: &'a Value| Box::new(iter::once(n)))
}
Selector::DescendantUnion(indices) => {
Self::traverse(input, move |n: &'a Value| Box::new(indices.iter().flat_map(move |i| i.find(n))))
}
Selector::DescendantUnion(indices) => Self::traverse(input, move |n: &'a Value| {
Box::new(indices.iter().flat_map(move |i| i.find(n)))
}),
}
}

Expand Down