mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
rebase from master
This commit is contained in:
parent
2143226f04
commit
dc6907e748
29 changed files with 92 additions and 105 deletions
|
@ -22,10 +22,10 @@ fn validate_number(value: &Number) -> Option<String> {
|
|||
if value.is_f64() {
|
||||
return None
|
||||
}
|
||||
return Some(value.to_string())
|
||||
Some(value.to_string())
|
||||
}
|
||||
|
||||
fn validate_string(value: &String) -> Option<String> {
|
||||
fn validate_string(value: &str) -> Option<String> {
|
||||
if value.chars().all(|x| x.is_ascii_alphanumeric() || x == '-' || x == '_') {
|
||||
Some(value.to_string())
|
||||
} else {
|
||||
|
|
|
@ -306,7 +306,6 @@ where
|
|||
T: ser::Serialize,
|
||||
{
|
||||
let field_id = schema.get_or_create(&attribute)?;
|
||||
|
||||
serialize_value_with_id(
|
||||
txn,
|
||||
field_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue