Skip to content

Commit 963814b

Browse files
committed
Adapt bsearch to new calling conventions.
1 parent 4d7425f commit 963814b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jaq-json/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn base() -> Box<[Filter<RunPtr<Val>>]> {
385385
x.indices(&v).map(|idxs| idxs.map(to_int).collect())
386386
})
387387
}),
388-
("bsearch", v(1), |_, cv| {
388+
("bsearch", v(1), |cv| {
389389
let to_idx = |r: Result<_, _>| r.map_or_else(|i| -1 - i as isize, |i| i as isize);
390390
unary(cv, move |a, x| {
391391
a.as_arr().map(|a| Val::Int(to_idx(a.binary_search(&x))))

0 commit comments

Comments
 (0)