mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Fix clippy errors
This commit is contained in:
parent
0da8fa115e
commit
9e69f33f3c
@ -135,9 +135,9 @@ impl Index {
|
|||||||
let mut attr_name = attribute.clone();
|
let mut attr_name = attribute.clone();
|
||||||
let mut attr_len = query.crop_length;
|
let mut attr_len = query.crop_length;
|
||||||
|
|
||||||
if attr_name.contains(":") {
|
if attr_name.contains(':') {
|
||||||
let mut split = attr_name.rsplit(':');
|
let mut split = attr_name.rsplit(':');
|
||||||
attr_len = match split.nth(0) {
|
attr_len = match split.next() {
|
||||||
Some(s) => s.parse::<usize>().ok(),
|
Some(s) => s.parse::<usize>().ok(),
|
||||||
None => None,
|
None => None,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user