do not use a nightly feature
This commit is contained in:
@@ -80,7 +80,7 @@ pub struct Runtime<'a, R: BufRead> {
|
|||||||
inner: executor::Executor<'a, parser::Parser<tokenizer::Tokenizer<R>>>
|
inner: executor::Executor<'a, parser::Parser<tokenizer::Tokenizer<R>>>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, R: BufRead> Runtime<'a, R> {
|
impl<'a, R: BufRead + 'a> Runtime<'a, R> {
|
||||||
pub fn new(reader: R) -> Self {
|
pub fn new(reader: R) -> Self {
|
||||||
Self {
|
Self {
|
||||||
inner: Executor::new(Parser::new(Tokenizer::new(reader)))
|
inner: Executor::new(Parser::new(Tokenizer::new(reader)))
|
||||||
@@ -99,7 +99,7 @@ impl<'a, R: BufRead> Runtime<'a, R> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn values(self) -> impl Iterator<Item = Result<Value, RuntimeError>> + use<'a, R> {
|
pub fn values(self) -> impl Iterator<Item = Result<Value, RuntimeError>> + 'a {
|
||||||
self.inner
|
self.inner
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user