Fixing clippy. (#3471)

pull/3462/head
Dessalines 11 months ago committed by GitHub
parent bf62fbe644
commit 8bcf2ea7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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())),

Loading…
Cancel
Save