From 9e69f33f3c3b9792cc85314bc786440fd1a16bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Tue, 8 Jun 2021 18:02:04 +0200 Subject: [PATCH] Fix clippy errors --- meilisearch-http/src/index/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index 603ebf1b3..bedde0997 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -135,9 +135,9 @@ impl Index { let mut attr_name = attribute.clone(); let mut attr_len = query.crop_length; - if attr_name.contains(":") { + if attr_name.contains(':') { let mut split = attr_name.rsplit(':'); - attr_len = match split.nth(0) { + attr_len = match split.next() { Some(s) => s.parse::().ok(), None => None, };