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:
parent
cba85ba9c5
commit
f761a8f837
@ -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};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user