diff options
author | Marco Groppo <[email protected]> | 2019-03-24 14:12:39 +0000 |
---|---|---|
committer | Marco Groppo <[email protected]> | 2019-03-24 14:12:39 +0000 |
commit | acac7415a6291efe5209c811dbb5b951ecf79198 (patch) | |
tree | d3a8654aec25285d12313790170d0edacefecbd2 /crates/ra_assists/src/flip_eq_operands.rs | |
parent | 481d3f56cf012789741d5d238f587b87b427a0f4 (diff) |
Minor formatting changes.
Diffstat (limited to 'crates/ra_assists/src/flip_eq_operands.rs')
-rw-r--r-- | crates/ra_assists/src/flip_eq_operands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/flip_eq_operands.rs b/crates/ra_assists/src/flip_eq_operands.rs index 22494a7c7..f9d1aad62 100644 --- a/crates/ra_assists/src/flip_eq_operands.rs +++ b/crates/ra_assists/src/flip_eq_operands.rs | |||
@@ -9,7 +9,7 @@ pub(crate) fn flip_eq_operands(mut ctx: AssistCtx<impl HirDatabase>) -> Option<A | |||
9 | let expr = ctx.node_at_offset::<BinExpr>()?; | 9 | let expr = ctx.node_at_offset::<BinExpr>()?; |
10 | let allowed_ops = [BinOp::EqualityTest, BinOp::NegatedEqualityTest]; | 10 | let allowed_ops = [BinOp::EqualityTest, BinOp::NegatedEqualityTest]; |
11 | let expr_op = expr.op()?; | 11 | let expr_op = expr.op()?; |
12 | if ! allowed_ops.iter().any(|o| *o == expr_op) { | 12 | if !allowed_ops.iter().any(|o| *o == expr_op) { |
13 | return None; | 13 | return None; |
14 | } | 14 | } |
15 | let node = expr.syntax(); | 15 | let node = expr.syntax(); |