Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Dec 12, 2024
1 parent a6a597c commit 9726b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-fixture/src/assertions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn assert_version(payload: &[u8], v: u32) {
///
/// If this is clearly not a Version Negotiation packet.
pub fn assert_vn(dgram: &Datagram) {
assert_eq!(dgram.tos(), IpTos::default()); // VN always uses default IP TOS.
assert_eq!(dgram.tos(), IpTos::default()); // VN always uses default IP TOS.
let mut dec = Decoder::from(dgram.as_ref());
assert_eq!(
dec.decode_uint::<u8>().unwrap() & 0x80,
Expand Down Expand Up @@ -88,7 +88,7 @@ pub fn assert_coalesced_0rtt(payload: &[u8]) {
///
/// If the tests fail.
pub fn assert_retry(dgram: &Datagram) {
assert_eq!(dgram.tos(), IpTos::default()); // Retry always uses default IP TOS.
assert_eq!(dgram.tos(), IpTos::default()); // Retry always uses default IP TOS.
let mut dec = Decoder::from(dgram.as_ref());
let t = dec.decode_uint::<u8>().unwrap();
let version = assert_default_version(&mut dec);
Expand Down

0 comments on commit 9726b8e

Please sign in to comment.