From 33ad2d0b15317f0767646f9ce8664d2cf1cceb1e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 6 Feb 2022 12:59:29 +0100 Subject: [PATCH] Fix typo in buffer iterator --- src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.rs b/src/buffer.rs index b3624594..e7296ed5 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -133,7 +133,7 @@ impl<'outer, 'inner> Iterator for Channels<'outer, 'inner> { } fn size_hint(&self) -> (usize, Option) { - let remaining = self.buffers0.len() - self.current_channel; + let remaining = self.buffers.len() - self.current_channel; (remaining, Some(remaining)) } }