do not use a nightly feature

This commit is contained in:
2024-10-15 01:23:12 -04:00
parent f9f5cb40e9
commit bc612f74ae

View File

@@ -80,7 +80,7 @@ pub struct Runtime<'a, R: BufRead> {
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 {
Self {
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
}
}