diff options
author | Aleksey Kladov <[email protected]> | 2019-10-27 08:48:40 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-27 08:53:09 +0000 |
commit | 8118dc1bb9bc63670f72965e5115daa96e8c72fd (patch) | |
tree | 3f470ea1e7f737e3d846eb77b006dc75023652ec /crates/ra_assists/src/assists/replace_if_let_with_match.rs | |
parent | 61349a3d18353ddfbd992a3bf51a88f5f0cfcddd (diff) |
use more consistent naming
I think this is the first time I use global rename for rust-analyzer
itself :-)
Diffstat (limited to 'crates/ra_assists/src/assists/replace_if_let_with_match.rs')
-rw-r--r-- | crates/ra_assists/src/assists/replace_if_let_with_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/replace_if_let_with_match.rs b/crates/ra_assists/src/assists/replace_if_let_with_match.rs index 749ff338a..da276e47b 100644 --- a/crates/ra_assists/src/assists/replace_if_let_with_match.rs +++ b/crates/ra_assists/src/assists/replace_if_let_with_match.rs | |||
@@ -8,7 +8,7 @@ use ra_syntax::{ast, AstNode}; | |||
8 | use crate::{Assist, AssistCtx, AssistId}; | 8 | use crate::{Assist, AssistCtx, AssistId}; |
9 | 9 | ||
10 | pub(crate) fn replace_if_let_with_match(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { | 10 | pub(crate) fn replace_if_let_with_match(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { |
11 | let if_expr: ast::IfExpr = ctx.node_at_offset()?; | 11 | let if_expr: ast::IfExpr = ctx.find_node_at_offset()?; |
12 | let cond = if_expr.condition()?; | 12 | let cond = if_expr.condition()?; |
13 | let pat = cond.pat()?; | 13 | let pat = cond.pat()?; |
14 | let expr = cond.expr()?; | 14 | let expr = cond.expr()?; |