Fixing clippy. (#3471)
This commit is contained in:
parent
bf62fbe644
commit
8bcf2ea7c9
1 changed files with 1 additions and 4 deletions
|
@ -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…
Reference in a new issue