Skip to content

Commit

Permalink
chore: fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse committed Jan 9, 2025
1 parent bcd603e commit e81f552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quiche/src/h3/qpack/huffman/table.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// (num-bits, bits)
pub const ENCODE_TABLE: [(usize, u64); 257] = [
pub static ENCODE_TABLE: [(usize, u64); 257] = [
(13, 0x1ff8),
(23, 0x7fffd8),
(28, 0xfffffe2),
Expand Down
6 changes: 3 additions & 3 deletions quiche/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3753,7 +3753,7 @@ impl Connection {
(pkt_type == Type::Handshake &&
self.local_error
.as_ref()
.map_or(false, |le| le.is_app))) &&
.is_some_and(|le| le.is_app))) &&
path.active()
{
let ack_delay = pkt_space.largest_rx_pkt_time.elapsed();
Expand Down Expand Up @@ -6814,7 +6814,7 @@ impl Connection {
if self
.local_error
.as_ref()
.map_or(false, |conn_err| !conn_err.is_app)
.is_some_and(|conn_err| !conn_err.is_app)
{
let epoch = match self.handshake.write_level() {
crypto::Level::Initial => packet::Epoch::Initial,
Expand Down Expand Up @@ -6880,7 +6880,7 @@ impl Connection {
self.dgram_send_queue.has_pending() ||
self.local_error
.as_ref()
.map_or(false, |conn_err| conn_err.is_app) ||
.is_some_and(|conn_err| conn_err.is_app) ||
self.streams.should_update_max_streams_bidi() ||
self.streams.should_update_max_streams_uni() ||
self.streams.has_flushable() ||
Expand Down

0 comments on commit e81f552

Please sign in to comment.