mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-09 22:25:23 +00:00
apply clippy suggestions
This commit is contained in:
parent
5e9d9853e7
commit
e00297d1c7
4 changed files with 26 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue