mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix clippy errors
This commit is contained in:
parent
0da8fa115e
commit
9e69f33f3c
1 changed files with 2 additions and 2 deletions
|
@ -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::<usize>().ok(),
|
||||
None => None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue