From a742f7dbd8bda0bf23a6d5273e5dd2f83b9d4c9f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 27 Jan 2023 21:48:22 +0100 Subject: clippy --- matroska/src/unflatten.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matroska/src/unflatten.rs') diff --git a/matroska/src/unflatten.rs b/matroska/src/unflatten.rs index 663eebc..57fd35b 100644 --- a/matroska/src/unflatten.rs +++ b/matroska/src/unflatten.rs @@ -46,7 +46,7 @@ impl<'a> Unflatten<'a> { self.inner.position() } - pub fn next(&mut self) -> Option> { + pub fn n(&mut self) -> Option> { if self.stop { return None; } @@ -84,6 +84,6 @@ impl<'a> Unflatten<'a> { impl Drop for Unflatten<'_> { fn drop(&mut self) { - while let Some(_) = self.next() {} + while self.n().is_some() {} } } -- cgit v1.2.3-70-g09d2