api: allow constructing MatrixErrorBody::NotJson

This commit is contained in:
Charles Hall 2024-10-03 19:26:23 -07:00 committed by strawberry
parent 7a8ca45bbe
commit 0286bcfa2f
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,8 @@ Improvements:
- Constructing a Matrix URI for an event with a room alias is deprecated, - Constructing a Matrix URI for an event with a room alias is deprecated,
according to MSC4132 / Matrix 1.11 according to MSC4132 / Matrix 1.11
- Implement `Eq` and `PartialEq` for `Metadata` - Implement `Eq` and `PartialEq` for `Metadata`
- Allow constructing `api::error::MatrixErrorBody::NotJson` outside of this
crate.
# 0.13.0 # 0.13.0

View File

@ -70,7 +70,6 @@ pub enum MatrixErrorBody {
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,