Skip to content

Commit b7266a1

Browse files
committed
formatting errors commit that should be removed once rebasing
1 parent 0e35a27 commit b7266a1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

quiche/src/h3/qpack/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ mod tests {
161161
let mut enc = Encoder::new();
162162

163163
// Indexed name with literal value
164-
let headers1 = vec![crate::h3::Header::new(b"location", b" ")];
164+
let headers1 =
165+
vec![crate::h3::Header::new(b"location", b" ")];
165166
assert_eq!(enc.encode(&headers1, &mut encoded), Ok(19));
166167

167168
// Literal name and value

quiche/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8167,7 +8167,7 @@ impl Connection {
81678167
.iter()
81688168
.filter(|(_, p)| p.active())
81698169
.map(|(_, p)| p.recovery.cwnd_available())
8170-
.filter(|cwnd| *cwnd != std::usize::MAX)
8170+
.filter(|cwnd| *cwnd != usize::MAX)
81718171
.sum();
81728172
self.tx_cap = cmp::min(
81738173
cwin_available,

quiche/src/packet.rs

+1
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ pub struct PktNumSpaceCrypto {
915915
pub crypto_seal: Option<crypto::Seal>,
916916

917917
pub crypto_0rtt_open: Option<crypto::Open>,
918+
#[allow(dead_code)]
918919
pub crypto_0rtt_seal: Option<crypto::Seal>,
919920

920921
pub crypto_stream: stream::Stream,

quiche/src/rand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn rand_u64() -> u64 {
4747
}
4848

4949
pub fn rand_u64_uniform(max: u64) -> u64 {
50-
let chunk_size = u64::max_value() / max;
50+
let chunk_size = u64::MAX / max;
5151
let end_of_last_chunk = chunk_size * max;
5252

5353
let mut r = rand_u64();

quiche/src/ranges.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl RangeSet {
122122
/// Iterate over the stored ranges in incremental order.
123123
pub fn iter(
124124
&self,
125-
) -> impl Iterator<Item = Range<u64>> + DoubleEndedIterator + ExactSizeIterator + '_
125+
) -> impl DoubleEndedIterator<Item = Range<u64>> + ExactSizeIterator + '_
126126
{
127127
match self {
128128
RangeSet::BTree(set) =>
@@ -135,9 +135,7 @@ impl RangeSet {
135135

136136
/// Iterate over every single [`u64`] value covered by the ranges in this
137137
/// [`RangeSet`] in incremental order.
138-
pub fn flatten(
139-
&self,
140-
) -> impl Iterator<Item = u64> + DoubleEndedIterator + '_ {
138+
pub fn flatten(&self) -> impl DoubleEndedIterator<Item = u64> + '_ {
141139
match self {
142140
RangeSet::BTree(set) =>
143141
Either::Left(set.inner.iter().flat_map(|(k, v)| *k..*v)),

0 commit comments

Comments
 (0)