add manual_let_else lint

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-01 23:30:57 -04:00 committed by June
parent c31fb7134a
commit a20b071a8a
2 changed files with 3 additions and 5 deletions

View file

@ -525,6 +525,7 @@ single_match = "warn"
single_match_else = "warn"
explicit_deref_methods = "warn"
explicit_iter_loop = "warn"
manual_let_else = "warn"
# some sadness
missing_errors_doc = "allow"

View file

@ -14,11 +14,8 @@ pub(crate) async fn send_request<T>(registration: Registration, request: T) -> R
where
T: OutgoingRequest + Debug,
{
let destination = match registration.url {
Some(url) => url,
None => {
let Some(destination) = registration.url else {
return Ok(None);
},
};
let hs_token = registration.hs_token.as_str();