mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Fix format
This commit is contained in:
parent
384e1ced88
commit
0593da9a36
@ -171,14 +171,11 @@ fn extend_tokens_from_range(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn skip_whitespace(
|
fn skip_whitespace(mut token: SyntaxToken, direction: Direction) -> Option<SyntaxToken> {
|
||||||
mut token: SyntaxToken,
|
|
||||||
direction: Direction,
|
|
||||||
) -> Option<SyntaxToken> {
|
|
||||||
while token.kind() == WHITESPACE {
|
while token.kind() == WHITESPACE {
|
||||||
token = match direction {
|
token = match direction {
|
||||||
Direction::Next => token.next_token()?,
|
Direction::Next => token.next_token()?,
|
||||||
Direction::Prev => token.prev_token()?,
|
Direction::Prev => token.prev_token()?,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(token)
|
Some(token)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user