diff options
author | Aleksey Kladov <[email protected]> | 2020-04-07 08:22:33 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-07 08:22:33 +0100 |
commit | baf9fcc38ebd5a52b22fdf115a7475f9002058f6 (patch) | |
tree | e4dd83fca52933e952d4e08e6f6fa588bfbdc319 /crates/ra_ide/src/completion/complete_keyword.rs | |
parent | 27285f93acffbeca45c7656f65d66539a2f7fcb4 (diff) | |
parent | 52fd2c8e4858c548195edceb83c02437d2d28ee5 (diff) |
Merge pull request #3866 from lnicola/fewer-braces
Fix unnecessary braces warnings
Diffstat (limited to 'crates/ra_ide/src/completion/complete_keyword.rs')
-rw-r--r-- | crates/ra_ide/src/completion/complete_keyword.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide/src/completion/complete_keyword.rs b/crates/ra_ide/src/completion/complete_keyword.rs index 1e053ea4a..38f9c34e7 100644 --- a/crates/ra_ide/src/completion/complete_keyword.rs +++ b/crates/ra_ide/src/completion/complete_keyword.rs | |||
@@ -86,9 +86,9 @@ fn is_in_loop_body(leaf: &SyntaxToken) -> bool { | |||
86 | } | 86 | } |
87 | let loop_body = match_ast! { | 87 | let loop_body = match_ast! { |
88 | match node { | 88 | match node { |
89 | ast::ForExpr(it) => { it.loop_body() }, | 89 | ast::ForExpr(it) => it.loop_body(), |
90 | ast::WhileExpr(it) => { it.loop_body() }, | 90 | ast::WhileExpr(it) => it.loop_body(), |
91 | ast::LoopExpr(it) => { it.loop_body() }, | 91 | ast::LoopExpr(it) => it.loop_body(), |
92 | _ => None, | 92 | _ => None, |
93 | } | 93 | } |
94 | }; | 94 | }; |