add manual_let_else lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
c31fb7134a
commit
a20b071a8a
2 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue