mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -118,9 +118,8 @@ fn nearest_token_after_node(
|
|||
token_type: syntax::SyntaxKind,
|
||||
) -> Option<syntax::SyntaxToken> {
|
||||
node.siblings_with_tokens(syntax::Direction::Next)
|
||||
.filter_map(|it| it.as_token().map(|it| it.clone()))
|
||||
.filter(|it| it.kind() == token_type)
|
||||
.next()
|
||||
.filter_map(|it| it.as_token().cloned())
|
||||
.find(|it| it.kind() == token_type)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue