mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-27 02:16:32 +00:00
Rust 1.73 (#8007)
This commit is contained in:
parent
d6a4283003
commit
2c2ebf952a
9 changed files with 13 additions and 16 deletions
|
|
@ -130,10 +130,7 @@ pub(crate) fn missing_whitespace_around_operator(
|
|||
context: &mut LogicalLinesContext,
|
||||
) {
|
||||
let mut tokens = line.tokens().iter().peekable();
|
||||
let first_token = tokens.by_ref().find_map(|token| {
|
||||
let kind = token.kind();
|
||||
(!kind.is_trivia()).then_some(token)
|
||||
});
|
||||
let first_token = tokens.by_ref().find(|token| !token.kind().is_trivia());
|
||||
let Some(mut prev_token) = first_token else {
|
||||
return;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue