@@ -436,7 +436,7 @@ impl Syntax {
436436 };
437437
438438 syntax
439− .update(source, source, &ChangeSet::new(&source))
439+ .update(source, source, &ChangeSet::new(source))
440440 .unwrap();
441441
442442 syntax
@@ -735,9 +735,7 @@ impl Syntax {
735735 .peekable();
736736
737737 // If there's no captures, skip the layer
738− if captures.peek().is_none() {
739− return None;
740− }
738+ captures.peek()?;
741739
742740 Some(HighlightIterLayer {
743741 highlight_end_stack: Vec::new(),