Skip to content

Commit dbaabb1

Browse files
committed
style: cargo fmt + clippy --fix under stable 1.96 (CI toolchain) — fmt --check + clippy -D warnings clean
1 parent 984870f commit dbaabb1

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/plugins/sql.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,17 @@ impl SqlPlugin {
205205
| BinaryOperator::Lt
206206
| BinaryOperator::LtEq
207207
| BinaryOperator::Gt
208-
| BinaryOperator::GtEq => {
208+
| BinaryOperator::GtEq
209209
if lt_cat != rt_cat
210210
&& lt_cat != TypeCategory::Unknown
211-
&& rt_cat != TypeCategory::Unknown
212-
{
213-
issues.push(TypeIssue {
214-
message: format!(
215-
"Comparing incompatible types: {} ({:?}) vs {} ({:?})",
216-
lt, lt_cat, rt, rt_cat
217-
),
218-
});
219-
}
211+
&& rt_cat != TypeCategory::Unknown =>
212+
{
213+
issues.push(TypeIssue {
214+
message: format!(
215+
"Comparing incompatible types: {} ({:?}) vs {} ({:?})",
216+
lt, lt_cat, rt, rt_cat
217+
),
218+
});
220219
}
221220
_ => {}
222221
}

0 commit comments

Comments
 (0)