mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Compare to RawValue::NULL
constant rather than explicit "null"
This commit is contained in:
@ -151,7 +151,7 @@ impl<'doc> serde::de::Visitor<'doc> for RawVectorsVisitor {
|
|||||||
}
|
}
|
||||||
Ok(Some("embeddings")) => {
|
Ok(Some("embeddings")) => {
|
||||||
let value: &RawValue = match map.next_value::<&RawValue>() {
|
let value: &RawValue = match map.next_value::<&RawValue>() {
|
||||||
Ok(value) if value.get() == "null" => continue,
|
Ok(value) if value.get() == RawValue::NULL.get() => continue,
|
||||||
Ok(value) => value,
|
Ok(value) => value,
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
return Ok(Err(RawVectorsError::DeserializeEmbeddings {
|
return Ok(Err(RawVectorsError::DeserializeEmbeddings {
|
||||||
|
Reference in New Issue
Block a user