Prefer using the impl syntax

This commit is contained in:
Clément Renault 2019-10-04 10:21:09 +02:00
parent 38e474deaf
commit 3476939b7e
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
9 changed files with 24 additions and 26 deletions

View file

@ -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>