mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
chore: Clean up dependencies and avoid custom ones
This commit is contained in:
parent
8adfa0e431
commit
89c4af0cc2
2 changed files with 4 additions and 24 deletions
|
@ -1,5 +1,3 @@
|
|||
use std::ops::Deref;
|
||||
|
||||
use fst::Automaton;
|
||||
use lazy_static::lazy_static;
|
||||
use levenshtein_automata::{
|
||||
|
@ -90,16 +88,3 @@ pub trait AutomatonExt: Automaton {
|
|||
fn eval<B: AsRef<[u8]>>(&self, s: B) -> Distance;
|
||||
fn query_len(&self) -> usize;
|
||||
}
|
||||
|
||||
impl<T> AutomatonExt for T
|
||||
where T: Deref,
|
||||
T::Target: AutomatonExt,
|
||||
{
|
||||
fn eval<B: AsRef<[u8]>>(&self, s: B) -> Distance {
|
||||
(**self).eval(s)
|
||||
}
|
||||
|
||||
fn query_len(&self) -> usize {
|
||||
(**self).query_len()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue