Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/parser.rs')
-rw-r--r--crates/parser/src/parser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/parser/src/parser.rs b/crates/parser/src/parser.rs
index 8078532e0b..75a75f601c 100644
--- a/crates/parser/src/parser.rs
+++ b/crates/parser/src/parser.rs
@@ -327,10 +327,10 @@ impl Marker {
self.bomb.defuse();
let idx = self.pos as usize;
if idx == p.events.len() - 1 {
- match p.events.pop() {
- Some(Event::Start { kind: TOMBSTONE, forward_parent: None }) => (),
- _ => unreachable!(),
- }
+ assert!(matches!(
+ p.events.pop(),
+ Some(Event::Start { kind: TOMBSTONE, forward_parent: None })
+ ));
}
}
}