diff --git a/CHANGELOG.md b/CHANGELOG.md index 9647fe9..997be41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +* 0.8.3 - April 21, 2024 + + - Made `Intern` work with `serde`. + * 0.8.2 - April 17, 2024 - Added support for `deepsize` for all three intern types. diff --git a/Cargo.toml b/Cargo.toml index 4f1d599..68e545a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "internment" -version = "0.8.2" +version = "0.8.3" authors = ["David Roundy "] edition = "2018" diff --git a/src/intern.rs b/src/intern.rs index dd86a3d..bd001c9 100644 --- a/src/intern.rs +++ b/src/intern.rs @@ -390,7 +390,7 @@ impl Ord for Intern { #[cfg_attr(docsrs, doc(cfg(feature = "serde")))] #[cfg(feature = "serde")] -impl Serialize for Intern { +impl Serialize for Intern { fn serialize(&self, serializer: S) -> Result { self.as_ref().serialize(serializer) } @@ -409,7 +409,7 @@ impl Default for Intern { #[cfg_attr(docsrs, doc(cfg(feature = "serde")))] #[cfg(feature = "serde")] -impl<'de, T: Eq + Hash + Send + Sync + 'static + Deserialize<'de>> Deserialize<'de> for Intern { +impl<'de, T: Eq + Hash + Send + Sync + ?Sized + 'static + Deserialize<'de>> Deserialize<'de> for Intern { fn deserialize>(deserializer: D) -> Result { T::deserialize(deserializer).map(|x: T| Self::new(x)) }