style(lib): use just std instead of ::std in paths (#2101)

This commit is contained in:
Linus Färnstrand
2020-01-29 19:25:57 +01:00
committed by GitHub
parent c4bb4db5c2
commit de7418da2f
14 changed files with 32 additions and 32 deletions

View File

@@ -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);
}