Skip to content

Commit

Permalink
cargo fmt again
Browse files Browse the repository at this point in the history
  • Loading branch information
neon64 committed Jun 27, 2022
1 parent 6795134 commit 80dec69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_payload_length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ fn test_payload_length() {
let list = " ".repeat(1024 * 1024 + 20);
let too_large_res = json!({ "big_list": list });

match send_message(sink(), &too_large_res)
.expect_err("expected error")
{
match send_message(sink(), &too_large_res).expect_err("expected error") {
Error::MessageTooLarge { size: _ } => {}
_ => panic!("expected `MessageTooLarge` error"),
}
Expand Down

0 comments on commit 80dec69

Please sign in to comment.