Rollup merge of #150365 - cuiweixie:first_pr, r=JonathanBrouwer,Kivooeo
refactor: simplify code
This commit is contained in:
commit
d37f008be8
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue