Fix builds.

This commit is contained in:
Stephen Chung 2022-11-22 16:02:04 +08:00
parent 94aeab1015
commit 7c4e751d33

View File

@ -137,6 +137,7 @@ impl<'de> Visitor<'de> for DynamicVisitor {
fn visit_string<E: Error>(self, v: String) -> Result<Self::Value, E> { fn visit_string<E: Error>(self, v: String) -> Result<Self::Value, E> {
Ok(v.into()) Ok(v.into())
} }
#[cfg(not(feature = "no_index"))]
#[inline(always)] #[inline(always)]
fn visit_bytes<E: Error>(self, v: &[u8]) -> Result<Self::Value, E> { fn visit_bytes<E: Error>(self, v: &[u8]) -> Result<Self::Value, E> {
Ok(Dynamic::from_blob(v.to_vec())) Ok(Dynamic::from_blob(v.to_vec()))