style(lib): use just std instead of ::std in paths (#2101)
				
					
				
			This commit is contained in:
		| @@ -777,7 +777,7 @@ impl fmt::Debug for Writing { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ::std::ops::BitAndAssign<bool> for KA { | ||||
| impl std::ops::BitAndAssign<bool> for KA { | ||||
|     fn bitand_assign(&mut self, enabled: bool) { | ||||
|         if !enabled { | ||||
|             trace!("remote disabling keep-alive"); | ||||
| @@ -1041,7 +1041,7 @@ mod tests { | ||||
|         conn.state.idle(); | ||||
|  | ||||
|         match conn.poll() { | ||||
|             Err(ref err) if err.kind() == ::std::io::ErrorKind::UnexpectedEof => {}, | ||||
|             Err(ref err) if err.kind() == std::io::ErrorKind::UnexpectedEof => {}, | ||||
|             other => panic!("unexpected frame: {:?}", other) | ||||
|         } | ||||
|     } | ||||
| @@ -1065,7 +1065,7 @@ mod tests { | ||||
|             conn.state.busy(); | ||||
|  | ||||
|             match conn.poll() { | ||||
|                 Err(ref err) if err.kind() == ::std::io::ErrorKind::UnexpectedEof => {}, | ||||
|                 Err(ref err) if err.kind() == std::io::ErrorKind::UnexpectedEof => {}, | ||||
|                 other => panic!("unexpected frame: {:?}", other) | ||||
|             } | ||||
|             Ok(()) | ||||
|   | ||||
| @@ -386,7 +386,7 @@ mod tests { | ||||
|  | ||||
|     impl<'a> MemRead for &'a [u8] { | ||||
|         fn read_mem(&mut self, _: &mut task::Context<'_>, len: usize) -> Poll<io::Result<Bytes>> { | ||||
|             let n = ::std::cmp::min(len, self.len()); | ||||
|             let n = std::cmp::min(len, self.len()); | ||||
|             if n > 0 { | ||||
|                 let (a, b) = self.split_at(n); | ||||
|                 let buf = Bytes::copy_from_slice(a); | ||||
|   | ||||
| @@ -278,7 +278,7 @@ where | ||||
| { | ||||
|     fn read_mem(&mut self, cx: &mut task::Context<'_>, len: usize) -> Poll<io::Result<Bytes>> { | ||||
|         if !self.read_buf.is_empty() { | ||||
|             let n = ::std::cmp::min(len, self.read_buf.len()); | ||||
|             let n = std::cmp::min(len, self.read_buf.len()); | ||||
|             Poll::Ready(Ok(self.read_buf.split_to(n).freeze())) | ||||
|         } else { | ||||
|             let n = ready!(self.poll_read_from_io(cx))?; | ||||
| @@ -773,7 +773,7 @@ mod tests { | ||||
|         } | ||||
|  | ||||
|         let mut max = 8192; | ||||
|         while max < ::std::usize::MAX { | ||||
|         while max < std::usize::MAX { | ||||
|             fuzz(max); | ||||
|             max = (max / 2).saturating_mul(3); | ||||
|         } | ||||
|   | ||||
| @@ -50,7 +50,7 @@ mod body_length { | ||||
|     #[derive(Clone, Copy, PartialEq, Eq)] | ||||
|     pub(crate) struct DecodedLength(u64); | ||||
|  | ||||
|     const MAX_LEN: u64 = ::std::u64::MAX - 2; | ||||
|     const MAX_LEN: u64 = std::u64::MAX - 2; | ||||
|  | ||||
|     impl DecodedLength { | ||||
|         pub(crate) const CLOSE_DELIMITED: DecodedLength = DecodedLength(::std::u64::MAX); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user