Fixing clippy. (#3471)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 4 Jul 2023 10:15:27 +0000 (06:15 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 10:15:27 +0000 (12:15 +0200)
crates/db_schema/src/utils.rs

index 44230d10a8f6f0531b1be7ffd157d3aa18397d20..1dc2f9afa299af1b5da16a6a8b2bdf5c73544205 100644 (file)
@@ -346,10 +346,7 @@ mod tests {
       diesel_option_overwrite_to_url(&Some(String::new())),
       Ok(Some(None))
     ));
-    assert!(matches!(
-      diesel_option_overwrite_to_url(&Some("invalid_url".to_string())),
-      Err(_)
-    ));
+    assert!(diesel_option_overwrite_to_url(&Some("invalid_url".to_string())).is_err());
     let example_url = "https://example.com";
     assert!(matches!(
       diesel_option_overwrite_to_url(&Some(example_url.to_string())),