Fix Dynamic::from for BLOB.

This commit is contained in:
Stephen Chung 2021-12-18 15:36:30 +08:00
parent 9cf8360616
commit 82d3375fc0

View File

@ -1277,7 +1277,7 @@ impl Dynamic {
#[cfg(not(feature = "no_index"))]
{
value = match unsafe_try_cast::<_, crate::Blob>(value) {
Ok(blob) => return blob.into(),
Ok(blob) => return Dynamic::from_blob(blob), // don't use blob.into() because it'll be converted into an Array
Err(value) => value,
};
}