Skip to content

Commit 131fc2b

Browse files
committed
Update API to new jaq
1 parent f108dc3 commit 131fc2b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/jaq.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use jaq_all::jaq_core::{Error, ops};
55
use crate::{RpcValue, Value};
66

77
pub type ValR = jaq_all::jaq_core::ValR<RpcValue>;
8-
pub type ValX = jaq_all::jaq_core::ValX<RpcValue>;
8+
pub type ValX<'a> = jaq_all::jaq_core::ValX<'a, RpcValue>;
99
impl Neg for RpcValue {
1010
type Output = ValR;
1111
fn neg(self) -> Self::Output {
@@ -245,29 +245,29 @@ impl jaq_all::jaq_core::ValT for RpcValue {
245245
todo!("{}", fn_name::uninstantiated!());
246246
}
247247

248-
fn map_values<I: Iterator<Item = ValX>>(
248+
fn map_values<'a, I: Iterator<Item = ValX<'a>>>(
249249
self,
250250
_opt: jaq_all::jaq_core::path::Opt,
251251
_f: impl Fn(Self) -> I,
252-
) -> ValX {
252+
) -> ValX<'a> {
253253
todo!("{}", fn_name::uninstantiated!());
254254
}
255255

256-
fn map_index<I: Iterator<Item = ValX>>(
256+
fn map_index<'a, I: Iterator<Item = ValX<'a>>>(
257257
self,
258258
_index: &Self,
259259
_opt: jaq_all::jaq_core::path::Opt,
260260
_f: impl Fn(Self) -> I,
261-
) -> ValX {
261+
) -> ValX<'a> {
262262
todo!("{}", fn_name::uninstantiated!());
263263
}
264264

265-
fn map_range<I: Iterator<Item = ValX>>(
265+
fn map_range<'a, I: Iterator<Item = ValX<'a>>>(
266266
self,
267267
_range: jaq_all::jaq_core::val::Range<&Self>,
268268
_opt: jaq_all::jaq_core::path::Opt,
269269
_f: impl Fn(Self) -> I,
270-
) -> ValX {
270+
) -> ValX<'a> {
271271
todo!("{}", fn_name::uninstantiated!());
272272
}
273273

0 commit comments

Comments
 (0)