mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
makes kero happy
This commit is contained in:
parent
eddefb0e0f
commit
0f33a65468
@ -114,9 +114,9 @@ impl<W: Write> DocumentsBatchBuilder<W> {
|
|||||||
self.value_buffer.clear();
|
self.value_buffer.clear();
|
||||||
|
|
||||||
let value = &record[*i];
|
let value = &record[*i];
|
||||||
|
let trimmed_value = value.trim();
|
||||||
match type_ {
|
match type_ {
|
||||||
AllowedType::Number => {
|
AllowedType::Number => {
|
||||||
let trimmed_value = value.trim();
|
|
||||||
if trimmed_value.is_empty() {
|
if trimmed_value.is_empty() {
|
||||||
to_writer(&mut self.value_buffer, &Value::Null)?;
|
to_writer(&mut self.value_buffer, &Value::Null)?;
|
||||||
} else if let Ok(integer) = trimmed_value.parse::<i64>() {
|
} else if let Ok(integer) = trimmed_value.parse::<i64>() {
|
||||||
@ -137,7 +137,6 @@ impl<W: Write> DocumentsBatchBuilder<W> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
AllowedType::Boolean => {
|
AllowedType::Boolean => {
|
||||||
let trimmed_value = value.trim();
|
|
||||||
if trimmed_value.is_empty() {
|
if trimmed_value.is_empty() {
|
||||||
to_writer(&mut self.value_buffer, &Value::Null)?;
|
to_writer(&mut self.value_buffer, &Value::Null)?;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user