Open msrd0 opened 1 year ago
Consider wrapping it in a newtype struct like this:
#[derive(Deserialize, Eq, Hash, PartialEq, PartialOrd, Ord, Serialize)] #[serde(transparent)] pub struct MediaHash( #[serde(with = "serde_big_array::BigArray")] pub database::Hash );
Context: https://github.com/msrd0/tg2mx_bot/blob/d64de13b71da5e2f0a7b5d366648158bf5d14582/src/mxbot/state.rs#L174-L178
Consider wrapping it in a newtype struct like this: