Compare to RawValue::NULL constant rather than explicit "null"

This commit is contained in:
Louis Dureuil 2025-07-03 10:11:07 +02:00
parent a06cb1bfd6
commit 3740755d9c
No known key found for this signature in database

View file

@ -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 {