diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 16:08:58 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 16:08:58 +0100 |
commit | 633aace41108b74fe6c93c5ab04272067db033f9 (patch) | |
tree | d071a03fb2c191629da532c14c002c30328d1e04 /crates/ra_ide/src/completion/patterns.rs | |
parent | bfcee63e75d6feb21cafbdf3887e0efd508b6b2e (diff) |
Rename LambdaExpr -> ClosureExpr
Diffstat (limited to 'crates/ra_ide/src/completion/patterns.rs')
-rw-r--r-- | crates/ra_ide/src/completion/patterns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/patterns.rs b/crates/ra_ide/src/completion/patterns.rs index a68861e1c..9e654b373 100644 --- a/crates/ra_ide/src/completion/patterns.rs +++ b/crates/ra_ide/src/completion/patterns.rs | |||
@@ -134,7 +134,7 @@ pub(crate) fn is_in_loop_body(element: SyntaxElement) -> bool { | |||
134 | NodeOrToken::Token(token) => token.parent(), | 134 | NodeOrToken::Token(token) => token.parent(), |
135 | }; | 135 | }; |
136 | for node in leaf.ancestors() { | 136 | for node in leaf.ancestors() { |
137 | if node.kind() == FN || node.kind() == LAMBDA_EXPR { | 137 | if node.kind() == FN || node.kind() == CLOSURE_EXPR { |
138 | break; | 138 | break; |
139 | } | 139 | } |
140 | let loop_body = match_ast! { | 140 | let loop_body = match_ast! { |