remove two unnecessary matches
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e5307d44ca
commit
0d21d70d4a
2 changed files with 20 additions and 19 deletions
|
@ -50,22 +50,19 @@ where
|
|||
|
||||
let url = reqwest_request.url().clone();
|
||||
|
||||
let mut response = match services()
|
||||
let mut response = services()
|
||||
.globals
|
||||
.client
|
||||
.appservice
|
||||
.execute(reqwest_request)
|
||||
.await
|
||||
{
|
||||
Ok(r) => r,
|
||||
Err(e) => {
|
||||
.map_err(|e| {
|
||||
warn!(
|
||||
"Could not send request to appservice {} at {}: {}",
|
||||
registration.id, destination, e
|
||||
);
|
||||
return Err(e.into());
|
||||
},
|
||||
};
|
||||
e
|
||||
})?;
|
||||
|
||||
// reqwest::Response -> http::Response conversion
|
||||
let status = response.status();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue