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
This commit is contained in:
Jonas Platte 2019-01-30 22:50:06 +01:00
parent cba85ba9c5
commit f761a8f837

View File

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