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/flip_binexpr.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/flip_binexpr.rs')
-rw-r--r-- | crates/ra_assists/src/assists/flip_binexpr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/flip_binexpr.rs b/crates/ra_assists/src/assists/flip_binexpr.rs index 3a1e5cbe1..9765d5ddd 100644 --- a/crates/ra_assists/src/assists/flip_binexpr.rs +++ b/crates/ra_assists/src/assists/flip_binexpr.rs | |||
@@ -19,7 +19,7 @@ use crate::{Assist, AssistCtx, AssistId}; | |||
19 | // } | 19 | // } |
20 | // ``` | 20 | // ``` |
21 | pub(crate) fn flip_binexpr(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { | 21 | pub(crate) fn flip_binexpr(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { |
22 | let expr = ctx.node_at_offset::<BinExpr>()?; | 22 | let expr = ctx.find_node_at_offset::<BinExpr>()?; |
23 | let lhs = expr.lhs()?.syntax().clone(); | 23 | let lhs = expr.lhs()?.syntax().clone(); |
24 | let rhs = expr.rhs()?.syntax().clone(); | 24 | let rhs = expr.rhs()?.syntax().clone(); |
25 | let op_range = expr.op_token()?.text_range(); | 25 | let op_range = expr.op_token()?.text_range(); |