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"
|
single_match_else = "warn"
|
||||||
explicit_deref_methods = "warn"
|
explicit_deref_methods = "warn"
|
||||||
explicit_iter_loop = "warn"
|
explicit_iter_loop = "warn"
|
||||||
|
manual_let_else = "warn"
|
||||||
|
|
||||||
# some sadness
|
# some sadness
|
||||||
missing_errors_doc = "allow"
|
missing_errors_doc = "allow"
|
||||||
|
|
|
@ -14,11 +14,8 @@ pub(crate) async fn send_request<T>(registration: Registration, request: T) -> R
|
||||||
where
|
where
|
||||||
T: OutgoingRequest + Debug,
|
T: OutgoingRequest + Debug,
|
||||||
{
|
{
|
||||||
let destination = match registration.url {
|
let Some(destination) = registration.url else {
|
||||||
Some(url) => url,
|
|
||||||
None => {
|
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let hs_token = registration.hs_token.as_str();
|
let hs_token = registration.hs_token.as_str();
|
||||||
|
|
Loading…
Add table
Reference in a new issue