diff options
Diffstat (limited to 'crates/ra_assists')
-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(); |