apply clippy suggestions

This commit is contained in:
Jeong YunWon 2025-01-22 01:28:12 +09:00 committed by Jeong, YunWon
parent 5e9d9853e7
commit e00297d1c7
4 changed files with 26 additions and 26 deletions

View file

@ -132,8 +132,8 @@ where
}
}
self.start_of_line = next.as_ref().map_or(false, |lex_result| {
lex_result.as_ref().map_or(false, |(tok, _)| {
self.start_of_line = next.as_ref().is_some_and(|lex_result| {
lex_result.as_ref().is_ok_and(|(tok, _)| {
#[cfg(feature = "full-lexer")]
if matches!(tok, Tok::NonLogicalNewline | Tok::Comment { .. }) {
return self.start_of_line;