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

@ -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 => {
return Ok(None);
},
let Some(destination) = registration.url else {
return Ok(None);
};
let hs_token = registration.hs_token.as_str();