Skip to content

Commit f15a3cc

Browse files
committed
tests(any/odbc): fix clippy single-match by using if let
1 parent 0ad3649 commit f15a3cc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/any/odbc.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,13 @@ async fn it_accepts_standard_odbc_connection_strings() -> anyhow::Result<()> {
384384

385385
for conn_str in non_odbc_cases {
386386
let kind_result = AnyKind::from_str(conn_str);
387-
match kind_result {
388-
Ok(kind) => assert_ne!(
387+
if let Ok(kind) = kind_result {
388+
assert_ne!(
389389
kind,
390390
AnyKind::Odbc,
391391
"Incorrectly identified '{}' as ODBC",
392392
conn_str
393-
),
394-
Err(_) => {} // Expected for unrecognized formats
393+
)
395394
}
396395
}
397396

0 commit comments

Comments
 (0)