Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
curquiza committed Jun 13, 2021
1 parent bbe16f6 commit 2e27e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meilisearch-http/src/index/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,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::<usize>().ok(),
None => None,
};
Expand Down

0 comments on commit 2e27e74

Please sign in to comment.