client-api: allow constructing ErrorBody::NotJson

This commit is contained in:
Charles Hall 2024-10-02 10:03:06 -07:00 committed by strawberry
parent 506b340302
commit 7a8ca45bbe
2 changed files with 1 additions and 1 deletions

View File

@ -37,6 +37,7 @@ Improvements:
- Add the `get_login_token` field to `Capabilities`, according to a - Add the `get_login_token` field to `Capabilities`, according to a
clarification in the spec. clarification in the spec.
- Add support for account locking, according to MSC3939. - Add support for account locking, according to MSC3939.
- Allow constructing `error::ErrorBody::NotJson` outside of this crate.
Bug fixes: Bug fixes:

View File

@ -316,7 +316,6 @@ pub enum ErrorBody {
Json(JsonValue), Json(JsonValue),
/// A response body that is not valid JSON. /// A response body that is not valid JSON.
#[non_exhaustive]
NotJson { NotJson {
/// The raw bytes of the response body. /// The raw bytes of the response body.
bytes: Bytes, bytes: Bytes,