Skip to content

Commit d7084a6

Browse files
authored
Fix issues found by cargo clippy (#456)
Temporarily disable tquic-interop-main workflow
1 parent 2a57740 commit d7084a6

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.github/workflows/tquic-interop-main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Interop
22

33
on:
4-
push:
5-
branches: [ "develop" ]
6-
pull_request:
7-
branches: [ "develop" ]
4+
# push:
5+
# branches: [ "develop" ]
6+
# pull_request:
7+
# branches: [ "develop" ]
88
workflow_dispatch:
99

1010
env:

src/endpoint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl Endpoint {
178178
}
179179

180180
// Update the connection route.
181-
if scid.len() > 0 {
181+
if !scid.is_empty() {
182182
self.routes.insert_with_cid(scid, idx);
183183
} else {
184184
self.routes
@@ -890,7 +890,7 @@ impl ConnectionRoutes {
890890
/// Find the target connection for the incoming datagram.
891891
fn find(&self, dcid: &ConnectionId, buf: &mut [u8], info: &PacketInfo) -> (Option<&u64>, bool) {
892892
let mut reset = false;
893-
let mut idx = if dcid.len() > 0 {
893+
let mut idx = if !dcid.is_empty() {
894894
// The packet has a non-zero-length Destination Connection ID
895895
// corresponding to an existing connection.
896896
self.cid_table.get(dcid)

src/h3/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Http3Error {
135135
Http3Error::QpackDecoderStreamError => 0x202,
136136
Http3Error::TransportError { .. } => 0x102,
137137
Http3Error::StreamBlocked => 0x102,
138-
Http3Error::Done { .. } => 0x102,
138+
Http3Error::Done => 0x102,
139139
}
140140
}
141141

src/packet.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ pub fn verify_retry_integrity_tag(buf: &mut [u8], odcid: &[u8], version: u32) ->
783783

784784
let hdr_buf = &buf[..buf.len() - len];
785785
let tag = compute_retry_integrity_tag(hdr_buf, odcid, version)?;
786+
#[allow(deprecated)]
786787
ring::constant_time::verify_slices_are_equal(&buf[buf.len() - len..], tag.as_ref())
787788
.map_err(|_| Error::CryptoFail)?;
788789

tools/src/bin/tquic_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl Worker {
691691
self.end_time = Some(Instant::now());
692692
}
693693

694-
if senders.len() == 0 {
694+
if senders.is_empty() {
695695
// All connections are closed.
696696
return Ok(true);
697697
}

0 commit comments

Comments
 (0)