diff options
Diffstat (limited to 'matroska/src/unflatten.rs')
-rw-r--r-- | matroska/src/unflatten.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Result<Unflat>> { + pub fn n(&mut self) -> Option<Result<Unflat>> { 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() {} } } |