apply clippy suggestions

This commit is contained in:
Tamo 2022-01-10 15:59:04 +01:00
parent 0fcde35a20
commit 92804f6f45
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
4 changed files with 5 additions and 11 deletions

View file

@ -233,7 +233,7 @@ fn parse_geo_point(input: Span) -> IResult<FilterCondition> {
multispace0,
tag("_geoPoint"),
// if we were able to parse `_geoPoint` we are going to return a Failure whatever happens next.
cut(delimited(char('('), separated_list1(tag(","), ws(|c| recognize_float(c))), char(')'))),
cut(delimited(char('('), separated_list1(tag(","), ws(recognize_float)), char(')'))),
))(input)
.map_err(|e| e.map(|_| Error::new_from_kind(input, ErrorKind::ReservedGeo("_geoPoint"))))?;
// if we succeeded we still return a `Failure` because geoPoints are not allowed