mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01:00
fix a bug
This commit is contained in:
parent
7483614b75
commit
dc84ecc40b
@ -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…
x
Reference in New Issue
Block a user