File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ impl From<Option<u64>> for DecodedLength {
15
15
}
16
16
17
17
#[ cfg( any( feature = "http1" , feature = "http2" , test) ) ]
18
- const MAX_LEN : u64 = std :: u64:: MAX - 2 ;
18
+ const MAX_LEN : u64 = u64:: MAX - 2 ;
19
19
20
20
impl DecodedLength {
21
- pub ( crate ) const CLOSE_DELIMITED : DecodedLength = DecodedLength ( :: std :: u64:: MAX ) ;
22
- pub ( crate ) const CHUNKED : DecodedLength = DecodedLength ( :: std :: u64:: MAX - 1 ) ;
21
+ pub ( crate ) const CLOSE_DELIMITED : DecodedLength = DecodedLength ( u64:: MAX ) ;
22
+ pub ( crate ) const CHUNKED : DecodedLength = DecodedLength ( u64:: MAX - 1 ) ;
23
23
pub ( crate ) const ZERO : DecodedLength = DecodedLength ( 0 ) ;
24
24
25
25
#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ where
406
406
///
407
407
/// The value must be no larger than `u32::MAX`.
408
408
pub fn max_send_buf_size ( & mut self , max : usize ) -> & mut Self {
409
- assert ! ( max <= std :: u32 :: MAX as usize ) ;
409
+ assert ! ( max <= u32 :: MAX as usize ) ;
410
410
self . h2_builder . max_send_buffer_size = max;
411
411
self
412
412
}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use std::error::Error as StdError;
2
2
use std:: fmt;
3
3
use std:: io;
4
4
use std:: task:: { Context , Poll } ;
5
- use std:: usize;
6
5
7
6
use bytes:: { BufMut , Bytes , BytesMut } ;
8
7
use futures_util:: ready;
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ impl<E> Builder<E> {
247
247
///
248
248
/// The value must be no larger than `u32::MAX`.
249
249
pub fn max_send_buf_size ( & mut self , max : usize ) -> & mut Self {
250
- assert ! ( max <= std :: u32 :: MAX as usize ) ;
250
+ assert ! ( max <= u32 :: MAX as usize ) ;
251
251
self . h2_builder . max_send_buffer_size = max;
252
252
self
253
253
}
You can’t perform that action at this time.
0 commit comments