aboutsummaryrefslogtreecommitdiff
path: root/matroska/src/read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'matroska/src/read.rs')
-rw-r--r--matroska/src/read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/matroska/src/read.rs b/matroska/src/read.rs
index c99f304..e2bf15c 100644
--- a/matroska/src/read.rs
+++ b/matroska/src/read.rs
@@ -87,7 +87,7 @@ impl EbmlReader {
Ok(EbmlSize::from_vint(self.read_vint_len()?))
}
pub fn read_stuff(&mut self) -> Result<()> {
- while let Some(e) = self.stack.last().map(|e| *e) {
+ while let Some(e) = self.stack.last().copied() {
if let Some(end) = e.end {
if self.position >= end {
if self.position != end {