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); let request = client.post(url).headers(headers).form(&params);
match request.send().await { match request.send().await {
Ok(response) => { Ok(response) => match response.status() {
match response.status() { reqwest::StatusCode::OK => Ok(response),
reqwest::StatusCode::OK => { status => Err(std::io::Error::other(format!(
Ok(response) "Unaccounted status: {status:?}"
} ))),
status => { },
Err(std::io::Error::other(format!("Unaccounted status: {status:?}")))
}
}
}
Err(err) => Err(std::io::Error::other(err.to_string())), Err(err) => Err(std::io::Error::other(err.to_string())),
} }
} }