mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Prefer using the impl syntax
This commit is contained in:
parent
38e474deaf
commit
3476939b7e
9 changed files with 24 additions and 26 deletions
|
@ -22,7 +22,7 @@ pub struct AutomatonProducer {
|
|||
|
||||
impl AutomatonProducer {
|
||||
pub fn new(
|
||||
reader: &rkv::Reader,
|
||||
reader: &impl rkv::Readable,
|
||||
query: &str,
|
||||
synonyms_store: store::Synonyms,
|
||||
) -> (AutomatonProducer, QueryEnhancer)
|
||||
|
@ -99,7 +99,7 @@ pub fn normalize_str(string: &str) -> String {
|
|||
}
|
||||
|
||||
fn generate_automatons(
|
||||
reader: &rkv::Reader,
|
||||
reader: &impl rkv::Readable,
|
||||
query: &str,
|
||||
synonym_store: store::Synonyms,
|
||||
) -> Result<(Vec<Vec<Automaton>>, QueryEnhancer), rkv::StoreError>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue