From 588399e415bca03ea5e19bc23b334fff74691b97 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 11 Jan 2023 19:59:00 -0500 Subject: [PATCH] Fix Clippy error --- src/flake8_simplify/rules/ast_if.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flake8_simplify/rules/ast_if.rs b/src/flake8_simplify/rules/ast_if.rs index bc6eb1c933..b9f134bed0 100644 --- a/src/flake8_simplify/rules/ast_if.rs +++ b/src/flake8_simplify/rules/ast_if.rs @@ -231,7 +231,7 @@ pub fn use_ternary_operator(checker: &mut Checker, stmt: &Stmt, parent: Option<& } fn compare_expr(expr1: &ComparableExpr, expr2: &ComparableExpr) -> bool { - expr1.eq(&expr2) + expr1.eq(expr2) } /// SIM401