cargo fmt
swoosh Build / Check (pull_request) Successful in 35s
Release Tagging / release (pull_request) Failing after 57s
swoosh Build / Test Suite (pull_request) Successful in 28s
swoosh Build / Rustfmt (pull_request) Successful in 26s
swoosh Build / Clippy (pull_request) Failing after 31s
swoosh Build / build (pull_request) Successful in 1m43s
swoosh Build / Check (pull_request) Successful in 35s
Release Tagging / release (pull_request) Failing after 57s
swoosh Build / Test Suite (pull_request) Successful in 28s
swoosh Build / Rustfmt (pull_request) Successful in 26s
swoosh Build / Clippy (pull_request) Failing after 31s
swoosh Build / build (pull_request) Successful in 1m43s
This commit is contained in:
+6
-10
@@ -61,16 +61,12 @@ pub async fn send_mssage(
|
||||
|
||||
let request = client.post(url).headers(headers).form(¶ms);
|
||||
match request.send().await {
|
||||
Ok(response) => {
|
||||
match response.status() {
|
||||
reqwest::StatusCode::OK => {
|
||||
Ok(response)
|
||||
}
|
||||
status => {
|
||||
Err(std::io::Error::other(format!("Unaccounted status: {status:?}")))
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(response) => match response.status() {
|
||||
reqwest::StatusCode::OK => Ok(response),
|
||||
status => Err(std::io::Error::other(format!(
|
||||
"Unaccounted status: {status:?}"
|
||||
))),
|
||||
},
|
||||
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user