mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Cargo clippy pass
This commit is contained in:
parent
ca26a0f2e4
commit
9dce41ed6b
16 changed files with 82 additions and 66 deletions
|
@ -102,7 +102,7 @@ pub struct QueryEnhancerBuilder<'a, S> {
|
|||
impl<S: AsRef<str>> QueryEnhancerBuilder<'_, S> {
|
||||
pub fn new(query: &[S]) -> QueryEnhancerBuilder<S> {
|
||||
// we initialize origins query indices based on their positions
|
||||
let origins: Vec<_> = (0..query.len() + 1).collect();
|
||||
let origins: Vec<_> = (0..=query.len()).collect();
|
||||
let real_to_origin = origins.iter().map(|&o| (o..o + 1, (o, 1))).collect();
|
||||
|
||||
QueryEnhancerBuilder {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue