From: Dessalines Date: Tue, 4 Jul 2023 10:15:27 +0000 (-0400) Subject: Fixing clippy. (#3471) X-Git-Url: http://these/git/%7B%60%24%7BrepoUrl%7D/blob/master/docs/static/%7BrepoUrl%7D?a=commitdiff_plain;h=8bcf2ea7c9c55e8e073917e3050f85e4bf913605;p=lemmy.git Fixing clippy. (#3471) --- 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())),