remove unnecessary double-colons

This commit is contained in:
Daniel Eades
2019-08-16 19:54:09 +01:00
committed by Sean McArthur
parent 06353fbb1a
commit 4bb4149b63
12 changed files with 70 additions and 70 deletions

View File

@@ -48,7 +48,7 @@ impl Body {
#[inline]
pub(crate) fn empty() -> Body {
Body::wrap(::hyper::Body::empty())
Body::wrap(hyper::Body::empty())
}
#[inline]
@@ -145,7 +145,7 @@ where
{
#[inline]
fn from(s: Box<dyn Stream<Item = I, Error = E> + Send>) -> Body {
Body::wrap(::hyper::Body::wrap_stream(s))
Body::wrap(hyper::Body::wrap_stream(s))
}
}
@@ -204,7 +204,7 @@ impl Extend<u8> for Chunk {
impl IntoIterator for Chunk {
type Item = u8;
//XXX: exposing type from hyper!
type IntoIter = <::hyper::Chunk as IntoIterator>::IntoIter;
type IntoIter = <hyper::Chunk as IntoIterator>::IntoIter;
fn into_iter(self) -> Self::IntoIter {
self.inner.into_iter()
}