diff --git a/src/event.rs b/src/event.rs index da93dbf..e06efb4 100644 --- a/src/event.rs +++ b/src/event.rs @@ -52,7 +52,9 @@ impl Events { /// Returns a chain of the next element (blocking) and a TryIter of everything after it. /// Useful for reading a single Iterator of all elements once after blocking, so there are not too many UI redraws. - pub fn blocking_iter(&self) -> Result> + '_, mpsc::RecvError> { + pub fn blocking_iter( + &self, + ) -> Result> + '_, mpsc::RecvError> { Ok(iter::once(self.rx.recv()?).chain(self.rx.try_iter())) } }