mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix a bug
This commit is contained in:
parent
7483614b75
commit
dc84ecc40b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ impl FromStr for Member {
|
||||||
.ok_or_else(|| UserError::InvalidCriterionName { name: text.to_string() })?;
|
.ok_or_else(|| UserError::InvalidCriterionName { name: text.to_string() })?;
|
||||||
let point = point
|
let point = point
|
||||||
.split(',')
|
.split(',')
|
||||||
.map(|el| el.trim()).parse()
|
.map(|el| el.trim().parse())
|
||||||
.collect::<Result<Vec<f64>, _>>()
|
.collect::<Result<Vec<f64>, _>>()
|
||||||
.map_err(|_| UserError::InvalidCriterionName { name: text.to_string() })?;
|
.map_err(|_| UserError::InvalidCriterionName { name: text.to_string() })?;
|
||||||
Ok(Member::Geo([point[0], point[1]]))
|
Ok(Member::Geo([point[0], point[1]]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue