Skip to content

Commit

Permalink
remove trailing comma (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
KershawChang authored May 17, 2024
1 parent cb343da commit 590940b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(crate) struct WebTransportSession {

impl ::std::fmt::Display for WebTransportSession {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "WebTransportSession session={}", self.session_id,)
write!(f, "WebTransportSession session={}", self.session_id)
}
}

Expand Down
2 changes: 1 addition & 1 deletion neqo-transport/src/connection/tests/vn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn server_receive_unknown_first_packet() {
unknown_version_packet.resize(MIN_INITIAL_PACKET_SIZE, 0x0);

assert_eq!(
server.process(Some(&datagram(unknown_version_packet,)), now(),),
server.process(Some(&datagram(unknown_version_packet)), now()),
Output::None
);

Expand Down
2 changes: 1 addition & 1 deletion neqo-transport/src/ecn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl EcnInfo {
qwarn!("ECN validation failed, ACK counted ECT(1) marks that were never sent");
self.state = EcnValidationState::Failed;
} else {
qinfo!("ECN validation succeeded, path is capable",);
qinfo!("ECN validation succeeded, path is capable");
self.state = EcnValidationState::Capable;
}
self.baseline = ack_ecn;
Expand Down
2 changes: 1 addition & 1 deletion neqo-transport/tests/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ fn overflow_crypto() {
client.process_input(&dgram, now());
if let State::Closing { error, .. } = client.state() {
assert!(
matches!(error, CloseReason::Transport(Error::CryptoBufferExceeded),),
matches!(error, CloseReason::Transport(Error::CryptoBufferExceeded)),
"the connection need to abort on crypto buffer"
);
assert!(pn > 64, "at least 64000 bytes of data is buffered");
Expand Down

0 comments on commit 590940b

Please sign in to comment.