mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 16:56:43 +00:00
Fixing clippy. (#3471)
This commit is contained in:
parent
bf62fbe644
commit
8bcf2ea7c9
|
@ -346,10 +346,7 @@ mod tests {
|
||||||
diesel_option_overwrite_to_url(&Some(String::new())),
|
diesel_option_overwrite_to_url(&Some(String::new())),
|
||||||
Ok(Some(None))
|
Ok(Some(None))
|
||||||
));
|
));
|
||||||
assert!(matches!(
|
assert!(diesel_option_overwrite_to_url(&Some("invalid_url".to_string())).is_err());
|
||||||
diesel_option_overwrite_to_url(&Some("invalid_url".to_string())),
|
|
||||||
Err(_)
|
|
||||||
));
|
|
||||||
let example_url = "https://example.com";
|
let example_url = "https://example.com";
|
||||||
assert!(matches!(
|
assert!(matches!(
|
||||||
diesel_option_overwrite_to_url(&Some(example_url.to_string())),
|
diesel_option_overwrite_to_url(&Some(example_url.to_string())),
|
||||||
|
|
Loading…
Reference in a new issue