Fix build.

This commit is contained in:
Stephen Chung 2021-12-02 16:01:37 +08:00
parent ec95e5ca97
commit 27c0181035

View File

@ -361,9 +361,13 @@ impl<'de> Deserializer<'de> for &mut DynamicDeserializer<'de> {
self,
visitor: V,
) -> Result<V::Value, Box<EvalAltResult>> {
self.value
#[cfg(not(feature = "no_index"))]
return self
.value
.downcast_ref::<Blob>()
.map_or_else(|| self.type_error(), |x| visitor.visit_bytes(x))
.map_or_else(|| self.type_error(), |x| visitor.visit_bytes(x));
#[cfg(feature = "no_index")]
return self.type_error();
}
fn deserialize_byte_buf<V: Visitor<'de>>(