projects
/
lemmy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf62fbe
)
Fixing clippy. (#3471)
author
Dessalines
<dessalines@users.noreply.github.com>
Tue, 4 Jul 2023 10:15:27 +0000
(06:15 -0400)
committer
GitHub
<noreply@github.com>
Tue, 4 Jul 2023 10:15:27 +0000
(12:15 +0200)
crates/db_schema/src/utils.rs
patch
|
blob
|
history
diff --git
a/crates/db_schema/src/utils.rs
b/crates/db_schema/src/utils.rs
index 44230d10a8f6f0531b1be7ffd157d3aa18397d20..1dc2f9afa299af1b5da16a6a8b2bdf5c73544205 100644
(file)
--- 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())),