From f761a8f837f44915c0abe5ae42a44a09cb832790 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 30 Jan 2019 22:50:06 +0100 Subject: [PATCH] Fix trait imports in generated code without rename Previously, the generated code would fail to compile when the 'derive' feature on the serde crate was enabled --- src/api/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index 3e19888f..e25316a4 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -329,8 +329,8 @@ impl ToTokens for Api { #[allow(unused_imports)] use ::futures::{Future as _Future, IntoFuture as _IntoFuture, Stream as _Stream}; use ::ruma_api::Endpoint as _RumaApiEndpoint; - use ::serde::Deserialize; - use ::serde::de::{Error as _SerdeError, IntoDeserializer}; + use ::serde::Deserialize as _Deserialize; + use ::serde::de::{Error as _SerdeError, IntoDeserializer as _IntoDeserializer}; use ::std::convert::{TryInto as _TryInto};