mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Fix format
This commit is contained in:
parent
384e1ced88
commit
0593da9a36
1 changed files with 2 additions and 5 deletions
|
@ -171,14 +171,11 @@ fn extend_tokens_from_range(
|
|||
}
|
||||
}
|
||||
|
||||
fn skip_whitespace(
|
||||
mut token: SyntaxToken,
|
||||
direction: Direction,
|
||||
) -> Option<SyntaxToken> {
|
||||
fn skip_whitespace(mut token: SyntaxToken, direction: Direction) -> Option<SyntaxToken> {
|
||||
while token.kind() == WHITESPACE {
|
||||
token = match direction {
|
||||
Direction::Next => token.next_token()?,
|
||||
Direction::Prev => token.prev_token()?,
|
||||
Direction::Prev => token.prev_token()?,
|
||||
}
|
||||
}
|
||||
Some(token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue