diff --git a/qlog/src/reader.rs b/qlog/src/reader.rs index 89a8e12a44..8a28179fec 100644 --- a/qlog/src/reader.rs +++ b/qlog/src/reader.rs @@ -40,14 +40,14 @@ pub enum Event { /// trait. /// /// [`BufRead`]: https://doc.rust-lang.org/std/io/trait.BufRead.html -pub struct QlogSeqReader { +pub struct QlogSeqReader<'a> { pub qlog: QlogSeq, - reader: Box, + reader: Box, } -impl QlogSeqReader { +impl<'a> QlogSeqReader<'a> { pub fn new( - mut reader: Box, + mut reader: Box, ) -> Result> { // "null record" skip it Self::read_record(reader.as_mut()); @@ -83,7 +83,7 @@ impl QlogSeqReader { } } -impl Iterator for QlogSeqReader { +impl<'a> Iterator for QlogSeqReader<'a> { type Item = Event; #[inline]