api: allow constructing MatrixErrorBody::NotJson
This commit is contained in:
parent
7a8ca45bbe
commit
0286bcfa2f
@ -28,6 +28,8 @@ Improvements:
|
||||
- Constructing a Matrix URI for an event with a room alias is deprecated,
|
||||
according to MSC4132 / Matrix 1.11
|
||||
- Implement `Eq` and `PartialEq` for `Metadata`
|
||||
- Allow constructing `api::error::MatrixErrorBody::NotJson` outside of this
|
||||
crate.
|
||||
|
||||
# 0.13.0
|
||||
|
||||
|
@ -70,7 +70,6 @@ pub enum MatrixErrorBody {
|
||||
Json(JsonValue),
|
||||
|
||||
/// A response body that is not valid JSON.
|
||||
#[non_exhaustive]
|
||||
NotJson {
|
||||
/// The raw bytes of the response body.
|
||||
bytes: Bytes,
|
||||
|
Loading…
x
Reference in New Issue
Block a user