Commit b7266a1 1 parent 0e35a27 commit b7266a1 Copy full SHA for b7266a1
File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ mod tests {
161
161
let mut enc = Encoder :: new ( ) ;
162
162
163
163
// 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" " ) ] ;
165
166
assert_eq ! ( enc. encode( & headers1, & mut encoded) , Ok ( 19 ) ) ;
166
167
167
168
// Literal name and value
Original file line number Diff line number Diff line change @@ -8167,7 +8167,7 @@ impl Connection {
8167
8167
.iter()
8168
8168
.filter(|(_, p)| p.active())
8169
8169
.map(|(_, p)| p.recovery.cwnd_available())
8170
- .filter(|cwnd| *cwnd != std:: usize::MAX)
8170
+ .filter(|cwnd| *cwnd != usize::MAX)
8171
8171
.sum();
8172
8172
self.tx_cap = cmp::min(
8173
8173
cwin_available,
Original file line number Diff line number Diff line change @@ -915,6 +915,7 @@ pub struct PktNumSpaceCrypto {
915
915
pub crypto_seal : Option < crypto:: Seal > ,
916
916
917
917
pub crypto_0rtt_open : Option < crypto:: Open > ,
918
+ #[ allow( dead_code) ]
918
919
pub crypto_0rtt_seal : Option < crypto:: Seal > ,
919
920
920
921
pub crypto_stream : stream:: Stream ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub fn rand_u64() -> u64 {
47
47
}
48
48
49
49
pub fn rand_u64_uniform ( max : u64 ) -> u64 {
50
- let chunk_size = u64:: max_value ( ) / max;
50
+ let chunk_size = u64:: MAX / max;
51
51
let end_of_last_chunk = chunk_size * max;
52
52
53
53
let mut r = rand_u64 ( ) ;
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl RangeSet {
122
122
/// Iterate over the stored ranges in incremental order.
123
123
pub fn iter (
124
124
& self ,
125
- ) -> impl Iterator < Item = Range < u64 > > + DoubleEndedIterator + ExactSizeIterator + ' _
125
+ ) -> impl DoubleEndedIterator < Item = Range < u64 > > + ExactSizeIterator + ' _
126
126
{
127
127
match self {
128
128
RangeSet :: BTree ( set) =>
@@ -135,9 +135,7 @@ impl RangeSet {
135
135
136
136
/// Iterate over every single [`u64`] value covered by the ranges in this
137
137
/// [`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 > + ' _ {
141
139
match self {
142
140
RangeSet :: BTree ( set) =>
143
141
Either :: Left ( set. inner . iter ( ) . flat_map ( |( k, v) | * k..* v) ) ,
You can’t perform that action at this time.
0 commit comments