You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by lu...@apache.org on 2026/10/16 14:28:29 UTC

(datafusion-sqlparser-rs) 01/01: Deny clippy::manual_assert_eq

This is an automated email from the ASF dual-hosted git repository.

LucaCappelletti94 pushed a commit to branch deny-manual-assert-eq
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git

commit ca1782b0f21434015f2c195693fc1c27138da35f
Author: LucaCappelletti94 <ca...@gmail.com>
AuthorDate: Fri Oct 16 16:28:21 2026 +0200

    Deny clippy::manual_assert_eq
---
 Cargo.toml                | 1 +
 tests/sqlparser_common.rs | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index a85de2e8..25553cd3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,6 +41,7 @@ unsafe_code = "forbid"
 
 [lints.clippy]
 assertions_on_result_states = "deny"
+manual_assert_eq = "deny"
 
 [workspace]
 members = ["sqlparser_bench"]
diff --git a/tests/sqlparser_common.rs b/tests/sqlparser_common.rs
index e22c3802..abb9ac9c 100644
--- a/tests/sqlparser_common.rs
+++ b/tests/sqlparser_common.rs
@@ -183,7 +183,7 @@ fn parse_insert_values() {
                         ..
                     }) => {
                         assert_eq!(rows.as_slice(), expected_rows);
-                        assert!(value_keyword == expected_value_keyword);
+                        assert_eq!(value_keyword, expected_value_keyword);
                     }
                     _ => unreachable!(),
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org