From 8bcf2ea7c9c55e8e073917e3050f85e4bf913605 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 4 Jul 2023 06:15:27 -0400 Subject: [PATCH] Fixing clippy. (#3471) --- crates/db_schema/src/utils.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/db_schema/src/utils.rs b/crates/db_schema/src/utils.rs index 44230d10..1dc2f9af 100644 --- a/crates/db_schema/src/utils.rs +++ b/crates/db_schema/src/utils.rs @@ -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())), -- 2.44.1