diff options
author | Aleksey Kladov <[email protected]> | 2019-04-02 10:25:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-02 10:25:24 +0100 |
commit | f3a82c372ccaa079842f151b749fbe9b8b9eb004 (patch) | |
tree | e7dab9896f9ddfa0af3c880375d8408c7db758e6 /crates/ra_assists | |
parent | 5287a2506c19b7f886556f8a73510f57dd234857 (diff) |
remove flavor
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/replace_if_let_with_match.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/replace_if_let_with_match.rs b/crates/ra_assists/src/replace_if_let_with_match.rs index 230573499..2b451f08d 100644 --- a/crates/ra_assists/src/replace_if_let_with_match.rs +++ b/crates/ra_assists/src/replace_if_let_with_match.rs | |||
@@ -11,8 +11,8 @@ pub(crate) fn replace_if_let_with_match(mut ctx: AssistCtx<impl HirDatabase>) -> | |||
11 | let expr = cond.expr()?; | 11 | let expr = cond.expr()?; |
12 | let then_block = if_expr.then_branch()?; | 12 | let then_block = if_expr.then_branch()?; |
13 | let else_block = match if_expr.else_branch()? { | 13 | let else_block = match if_expr.else_branch()? { |
14 | ast::ElseBranchFlavor::Block(it) => it, | 14 | ast::ElseBranch::Block(it) => it, |
15 | ast::ElseBranchFlavor::IfExpr(_) => return None, | 15 | ast::ElseBranch::IfExpr(_) => return None, |
16 | }; | 16 | }; |
17 | 17 | ||
18 | ctx.add_action(AssistId("replace_if_let_with_match"), "replace with match", |edit| { | 18 | ctx.add_action(AssistId("replace_if_let_with_match"), "replace with match", |edit| { |