From 0593da9a36667e7780b62c6e2403497e7262bafe Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 10 Jan 2020 20:39:05 +0800 Subject: Fix format --- crates/ra_ide/src/extend_selection.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/extend_selection.rs b/crates/ra_ide/src/extend_selection.rs index 9b6bbe82d..70b6fde82 100644 --- a/crates/ra_ide/src/extend_selection.rs +++ b/crates/ra_ide/src/extend_selection.rs @@ -171,14 +171,11 @@ fn extend_tokens_from_range( } } -fn skip_whitespace( - mut token: SyntaxToken, - direction: Direction, -) -> Option { +fn skip_whitespace(mut token: SyntaxToken, direction: Direction) -> Option { while token.kind() == WHITESPACE { token = match direction { Direction::Next => token.next_token()?, - Direction::Prev => token.prev_token()?, + Direction::Prev => token.prev_token()?, } } Some(token) -- cgit v1.2.3