Remove de/serialize bounds from StrippedStateContent.

See https://github.com/serde-rs/serde/issues/890.
This commit is contained in:
Jimmy Cuadra 2017-04-23 02:43:29 -07:00
parent edefffe220
commit c928c9bafc

View File

@ -65,9 +65,8 @@ pub enum StrippedState {
/// A "stripped-down" version of a core state event. /// A "stripped-down" version of a core state event.
#[derive(Clone, Debug, Deserialize, Serialize)] #[derive(Clone, Debug, Deserialize, Serialize)]
pub struct StrippedStateContent<C> where C: for<'a> Deserialize<'a> + Serialize { pub struct StrippedStateContent<C> {
/// Data specific to the event type. /// Data specific to the event type.
#[serde(bound(deserialize = ""))]
pub content: C, pub content: C,
/// The type of the event. /// The type of the event.
#[serde(rename="type")] #[serde(rename="type")]