Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ddragana committed Oct 21, 2021
1 parent b216d4f commit 9f6531d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions neqo-http3/tests/webtransport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ impl WtTest {
id: u64,
expected_error: &Option<AppError>,
) -> bool {
if let Http3ClientEvent::WebTransport(e) = e {
if let WebTransportEvent::WebTransportSessionClosed { stream_id, error } = e {
*stream_id == id && error == expected_error
} else {
false
}
if let Http3ClientEvent::WebTransport(WebTransportEvent::WebTransportSessionClosed {
stream_id,
error,
}) = e
{
*stream_id == id && error == expected_error
} else {
false
}
Expand Down Expand Up @@ -219,12 +219,11 @@ impl WtTest {
id: u64,
expected_error: &Option<AppError>,
) -> bool {
if let Http3ServerEvent::WebTransport(e) = e {
if let WebTransportServerEvent::WebTransportSessionClosed { session, error } = e {
session.stream_id() == id && error == expected_error
} else {
false
}
if let Http3ServerEvent::WebTransport(
WebTransportServerEvent::WebTransportSessionClosed { session, error },
) = e
{
session.stream_id() == id && error == expected_error
} else {
false
}
Expand Down

0 comments on commit 9f6531d

Please sign in to comment.