Fix serde builds.

This commit is contained in:
Stephen Chung
2020-08-04 09:47:48 +08:00
parent 4a7bf893e6
commit 3d6c83c6d8
2 changed files with 37 additions and 19 deletions

View File

@@ -177,6 +177,9 @@ impl<'de> Deserializer<'de> for &mut DynamicDeserializer<'de> {
Union::Variant(value) if value.is::<u128>() => self.deserialize_u128(visitor),
Union::Variant(_) => self.type_error(),
#[cfg(not(feature = "no_closure"))]
Union::Shared(_) => self.type_error(),
}
}