Rollup merge of #150365 - cuiweixie:first_pr, r=JonathanBrouwer,Kivooeo

refactor: simplify code
This commit is contained in:
Jonathan Brouwer 2025-12-25 21:11:54 +01:00 committed by GitHub
commit d37f008be8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ impl<'psess, 'src> Lexer<'psess, 'src> {
candidate = Some(*delimiter_span);
}
}
let (_, _) = self.diag_info.open_delimiters.pop().unwrap();
self.diag_info.open_delimiters.pop().unwrap();
self.diag_info.unmatched_delims.push(UnmatchedDelim {
found_delim: Some(close_delim),
found_span: self.token.span,