File tree 6 files changed +3
-9
lines changed
6 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,6 @@ use std::future::Future;
148
148
use std:: pin:: Pin ;
149
149
use std:: task:: { Context , Poll } ;
150
150
use std:: time:: Duration ;
151
- use std:: usize;
152
151
use tokio:: io:: { AsyncRead , AsyncWrite , AsyncWriteExt } ;
153
152
use tracing:: Instrument ;
154
153
@@ -1070,7 +1069,7 @@ impl Builder {
1070
1069
///
1071
1070
/// This function panics if `max` is larger than `u32::MAX`.
1072
1071
pub fn max_send_buffer_size ( & mut self , max : usize ) -> & mut Self {
1073
- assert ! ( max <= std :: u32 :: MAX as usize ) ;
1072
+ assert ! ( max <= u32 :: MAX as usize ) ;
1074
1073
self . max_send_buffer_size = max;
1075
1074
self
1076
1075
}
Original file line number Diff line number Diff line change 1
- use std:: u32;
2
-
3
1
/// A stream identifier, as described in [Section 5.1.1] of RFC 7540.
4
2
///
5
3
/// Streams are identified with an unsigned 31-bit integer. Streams
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use http::method::Method;
6
6
7
7
use std:: collections:: VecDeque ;
8
8
use std:: hash:: { Hash , Hasher } ;
9
- use std:: { cmp, mem, usize } ;
9
+ use std:: { cmp, mem} ;
10
10
11
11
/// HPACK encoder table
12
12
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change 1
1
use super :: * ;
2
2
3
- use std:: usize;
4
-
5
3
#[ derive( Debug ) ]
6
4
pub ( super ) struct Counts {
7
5
/// Acting as a client or server. This allows us to track which values to
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use super::*;
2
2
3
3
use std:: task:: { Context , Waker } ;
4
4
use std:: time:: Instant ;
5
- use std:: usize;
6
5
7
6
/// Tracks Stream related state
8
7
///
Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ impl Builder {
963
963
///
964
964
/// This function panics if `max` is larger than `u32::MAX`.
965
965
pub fn max_send_buffer_size ( & mut self , max : usize ) -> & mut Self {
966
- assert ! ( max <= std :: u32 :: MAX as usize ) ;
966
+ assert ! ( max <= u32 :: MAX as usize ) ;
967
967
self . max_send_buffer_size = max;
968
968
self
969
969
}
You can’t perform that action at this time.
0 commit comments