diff --git a/src/features/serde/mod.rs b/src/features/serde/mod.rs index 7293f476..353c0c47 100644 --- a/src/features/serde/mod.rs +++ b/src/features/serde/mod.rs @@ -179,6 +179,7 @@ impl serde::ser::Error for crate::error::EncodeError { /// [Encode]: ../enc/trait.Encode.html /// [DeserializeOwned]: https://docs.rs/serde/1/serde/de/trait.DeserializeOwned.html /// [Serialize]: https://docs.rs/serde/1/serde/trait.Serialize.html +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] pub struct Compat(pub T); impl crate::Decode for Compat @@ -240,6 +241,7 @@ where /// [Encode]: ../enc/trait.Encode.html /// [Deserialize]: https://docs.rs/serde/1/serde/de/trait.Deserialize.html /// [Serialize]: https://docs.rs/serde/1/serde/trait.Serialize.html +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] pub struct BorrowCompat(pub T); impl<'de, T> crate::de::BorrowDecode<'de> for BorrowCompat