From c506bd577a3a995fbd9df3a61179b37a4ff4dc6c Mon Sep 17 00:00:00 2001 From: Andreas Longva Date: Thu, 24 Nov 2022 16:18:13 +0100 Subject: [PATCH] Fix broken compilation for serde-serialize --- src/base/dimension.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/dimension.rs b/src/base/dimension.rs index cf290af5..71472783 100644 --- a/src/base/dimension.rs +++ b/src/base/dimension.rs @@ -51,7 +51,7 @@ impl<'de> Deserialize<'de> for Dynamic { where D: Deserializer<'de>, { - usize::deserialize(deserializer).map(|x| Dynamic(x)) + usize::deserialize(deserializer).map(|x| Dynamic::new(x)) } }