diff --git a/src/cache/compat.rs b/src/cache/compat.rs index d553e93..baade7c 100644 --- a/src/cache/compat.rs +++ b/src/cache/compat.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize}; use super::ImageContentType; -#[derive(Copy, Clone, Serialize, Deserialize)] +#[derive(Copy, Clone, Deserialize)] pub struct LegacyImageMetadata { pub(crate) content_type: Option, pub(crate) size: Option, @@ -50,15 +50,6 @@ impl<'de> Deserialize<'de> for LegacyDateTime { #[derive(Copy, Clone)] pub struct LegacyImageContentType(pub ImageContentType); -impl Serialize for LegacyImageContentType { - fn serialize(&self, serializer: S) -> Result - where - S: serde::Serializer, - { - serializer.serialize_str(self.0.as_ref()) - } -} - impl<'de> Deserialize<'de> for LegacyImageContentType { fn deserialize(deserializer: D) -> Result where