mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-03-14 18:55:37 +00:00
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]
|
||||
#[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() {
|
||||
let user_id: &UserId = "@user:example.com".try_into().unwrap();
|
||||
let room_id: &RoomId = "!room:example.com".try_into().unwrap();
|
||||
|
|
Loading…
Add table
Reference in a new issue