add missing cfg_attr on deserialisation db test
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
f59e3d8850
commit
9ebb39ca4f
1 changed files with 4 additions and 1 deletions
|
@ -219,7 +219,10 @@ fn de_tuple_incomplete_with_sep() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic(expected = "deserialization failed to consume trailing bytes")]
|
#[cfg_attr(
|
||||||
|
debug_assertions,
|
||||||
|
should_panic(expected = "deserialization failed to consume trailing bytes")
|
||||||
|
)]
|
||||||
fn de_tuple_unfinished() {
|
fn de_tuple_unfinished() {
|
||||||
let user_id: &UserId = "@user:example.com".try_into().unwrap();
|
let user_id: &UserId = "@user:example.com".try_into().unwrap();
|
||||||
let room_id: &RoomId = "!room:example.com".try_into().unwrap();
|
let room_id: &RoomId = "!room:example.com".try_into().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue