Skip to content

Commit 8841fb1

Browse files
committed
Actually add the opportunistic early breaks for the parallel look-ups.
1 parent fd9d229 commit 8841fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/look_up.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ where
135135
let objects = self.objects.as_ref();
136136

137137
if !objects.is_empty() {
138-
par_look_up(&LookUpArgs { query, visitor }, objects, 0);
138+
par_look_up(&LookUpArgs { query, visitor }, objects, 0)?;
139139
}
140140

141141
ControlFlow::Continue(())
@@ -205,7 +205,7 @@ where
205205
let position = object.position();
206206

207207
if contains(args.query.aabb(), position) && args.query.test(position) {
208-
(args.visitor)(object);
208+
(args.visitor)(object)?;
209209
}
210210

211211
let search_left =

0 commit comments

Comments
 (0)