mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-24 16:48:52 -04:00
Rename HttpError::{FromHttpResponse => ClientApi}
This commit is contained in:
@@ -2697,13 +2697,13 @@ mod test {
|
||||
.create();
|
||||
|
||||
if let Err(err) = client.login("example", "wordpass", None, None).await {
|
||||
if let crate::Error::Http(HttpError::FromHttpResponse(
|
||||
crate::FromHttpResponseError::Http(crate::ServerError::Known(crate::api::Error {
|
||||
if let crate::Error::Http(HttpError::ClientApi(crate::FromHttpResponseError::Http(
|
||||
crate::ServerError::Known(crate::api::Error {
|
||||
kind,
|
||||
message,
|
||||
status_code,
|
||||
})),
|
||||
)) = err
|
||||
}),
|
||||
))) = err
|
||||
{
|
||||
if let crate::api::error::ErrorKind::Forbidden = kind {
|
||||
} else {
|
||||
|
||||
@@ -57,7 +57,7 @@ pub enum HttpError {
|
||||
|
||||
/// An error converting between ruma_client_api types and Hyper types.
|
||||
#[error(transparent)]
|
||||
FromHttpResponse(#[from] FromHttpResponseError<RumaClientError>),
|
||||
ClientApi(#[from] FromHttpResponseError<RumaClientError>),
|
||||
|
||||
/// An error converting between ruma_client_api types and Hyper types.
|
||||
#[error(transparent)]
|
||||
|
||||
Reference in New Issue
Block a user