We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad3649 commit f15a3ccCopy full SHA for f15a3cc
tests/any/odbc.rs
@@ -384,14 +384,13 @@ async fn it_accepts_standard_odbc_connection_strings() -> anyhow::Result<()> {
384
385
for conn_str in non_odbc_cases {
386
let kind_result = AnyKind::from_str(conn_str);
387
- match kind_result {
388
- Ok(kind) => assert_ne!(
+ if let Ok(kind) = kind_result {
+ assert_ne!(
389
kind,
390
AnyKind::Odbc,
391
"Incorrectly identified '{}' as ODBC",
392
conn_str
393
- ),
394
- Err(_) => {} // Expected for unrecognized formats
+ )
395
}
396
397
0 commit comments