diff options
Diffstat (limited to 'crates/ra_assists/src/assists/apply_demorgan.rs')
-rw-r--r-- | crates/ra_assists/src/assists/apply_demorgan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/apply_demorgan.rs b/crates/ra_assists/src/assists/apply_demorgan.rs index 068da1774..0d59a0d24 100644 --- a/crates/ra_assists/src/assists/apply_demorgan.rs +++ b/crates/ra_assists/src/assists/apply_demorgan.rs | |||
@@ -57,7 +57,7 @@ fn opposite_logic_op(kind: ast::BinOp) -> Option<&'static str> { | |||
57 | } | 57 | } |
58 | 58 | ||
59 | // This function tries to undo unary negation, or inequality | 59 | // This function tries to undo unary negation, or inequality |
60 | fn undo_negation(node: SyntaxNode) -> Option<String> { | 60 | pub(crate) fn undo_negation(node: SyntaxNode) -> Option<String> { |
61 | match ast::Expr::cast(node)? { | 61 | match ast::Expr::cast(node)? { |
62 | ast::Expr::BinExpr(bin) => match bin.op_kind()? { | 62 | ast::Expr::BinExpr(bin) => match bin.op_kind()? { |
63 | ast::BinOp::NegatedEqualityTest => { | 63 | ast::BinOp::NegatedEqualityTest => { |