Fix broken compilation for serde-serialize

This commit is contained in:
Andreas Longva 2022-11-24 16:18:13 +01:00 committed by Sébastien Crozet
parent afabf4bad2
commit c506bd577a

View File

@ -51,7 +51,7 @@ impl<'de> Deserialize<'de> for Dynamic {
where where
D: Deserializer<'de>, D: Deserializer<'de>,
{ {
usize::deserialize(deserializer).map(|x| Dynamic(x)) usize::deserialize(deserializer).map(|x| Dynamic::new(x))
} }
} }