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

This commit is contained in:
2026-06-04 20:23:52 -04:00
parent bb58dafed3
commit b5fd3dbfff
+6 -10
View File
@@ -61,16 +61,12 @@ pub async fn send_mssage(
let request = client.post(url).headers(headers).form(&params);
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())),
}
}