mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Compare to RawValue::NULL
constant rather than explicit "null"
This commit is contained in:
parent
a06cb1bfd6
commit
3740755d9c
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ impl<'doc> serde::de::Visitor<'doc> for RawVectorsVisitor {
|
|||
}
|
||||
Ok(Some("embeddings")) => {
|
||||
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,
|
||||
Err(error) => {
|
||||
return Ok(Err(RawVectorsError::DeserializeEmbeddings {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue