From f2f4f0b6f4221da134c5313943e18f0af0c2564a Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 18 May 2021 19:56:27 -0400 Subject: [PATCH] Autoformat --- src/event.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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())) } }