MeiliSearch/milli/src
bors[bot] 365f44c39b
Merge #668
668: Fix many Clippy errors part 2 r=ManyTheFish a=ehiggs

This brings us a step closer to enforcing clippy on each build.

# Pull Request

## Related issue
This does not fix any issue outright, but it is a second round of fixes for clippy after https://github.com/meilisearch/milli/pull/665. This should contribute to fixing https://github.com/meilisearch/milli/pull/659.

## What does this PR do?

Satisfies many issues for clippy. The complaints are mostly:

* Passing reference where a variable is already a reference.
* Using clone where a struct already implements `Copy`
* Using `ok_or_else` when it is a closure that returns a value instead of using the closure to call function (hence we use `ok_or`)
* Unambiguous lifetimes don't need names, so we can just use `'_`
* Using `return` when it is not needed as we are on the last expression of a function.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Ewan Higgs <ewan.higgs@gmail.com>
2022-10-26 12:16:24 +00:00
..
documents Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
facet update milli with the new parser_filter 2021-11-04 15:02:36 +01:00
heed_codec Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
search Merge #668 2022-10-26 12:16:24 +00:00
snapshots/index.rs/initial_field_distribution Refactor snapshot tests 2022-08-10 15:53:46 +02:00
update Merge #668 2022-10-26 12:16:24 +00:00
asc_desc.rs Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
criterion.rs Improves ranking rules error message 2022-05-20 21:25:43 +02:00
error.rs Introduce an indexation abortion function when indexing documents 2022-10-17 17:28:03 +02:00
external_documents_ids.rs Fasten the document deletion 2022-07-05 15:30:33 +02:00
fields_ids_map.rs Fixes for clippy bringing us down to 18 remaining issues. 2022-10-25 20:49:02 +02:00
index.rs Merge #668 2022-10-26 12:16:24 +00:00
lib.rs Ignore too many arguments to functions. 2022-10-25 21:22:53 +02:00
proximity.rs Remove limit of 1000 position per attribute 2021-10-12 10:10:50 +02:00
snapshot_tests.rs Add prefix_word_pair_proximity database 2022-10-18 10:37:34 +02:00