From c3a5741f5ec6848fbe0b5bfa2ad6fe1e736ce270 Mon Sep 17 00:00:00 2001 From: GondwanaNuna <46540468+GondwanaNuna@users.noreply.github.com> Date: Fri, 3 May 2019 09:42:25 -0700 Subject: [PATCH] Make trait imports more readable (#18) --- src/api/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index 91b54c0b..77a14b4f 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -327,12 +327,12 @@ impl ToTokens for Api { let api = quote! { #[allow(unused_imports)] - use ::futures::{Future as _Future, IntoFuture as _IntoFuture, Stream as _Stream}; - use ::ruma_api::Endpoint as _RumaApiEndpoint; - use ::serde::Deserialize as _Deserialize; - use ::serde::de::{Error as _SerdeError, IntoDeserializer as _IntoDeserializer}; + use ::futures::{Future as _, IntoFuture as _, Stream as _}; + use ::ruma_api::Endpoint as _; + use ::serde::Deserialize as _; + use ::serde::de::{Error as _, IntoDeserializer as _}; - use ::std::convert::{TryInto as _TryInto}; + use ::std::convert::{TryInto as _}; /// The API endpoint. #[derive(Debug)] @@ -360,7 +360,7 @@ impl ToTokens for Api { } impl ::futures::future::FutureFrom<::http::Request<::hyper::Body>> for Request { - type Future = Box<_Future + Send>; + type Future = Box<::futures::Future + Send>; type Error = ::ruma_api::Error; #[allow(unused_variables)] @@ -422,7 +422,7 @@ impl ToTokens for Api { } impl ::futures::future::FutureFrom<::http::Response<::hyper::Body>> for Response { - type Future = Box<_Future + Send>; + type Future = Box<::futures::Future + Send>; type Error = ::ruma_api::Error; #[allow(unused_variables)]