mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Remove unneeded lifetimes.
This commit is contained in:
parent
6b2fe94192
commit
17f7922bfc
@ -313,7 +313,7 @@ pub struct TypoConfig<'a> {
|
||||
|
||||
/// Return the `QueryKind` of a word depending on `authorize_typos`
|
||||
/// and the provided word length.
|
||||
fn typos(word: String, authorize_typos: bool, config: TypoConfig<'_>) -> QueryKind {
|
||||
fn typos(word: String, authorize_typos: bool, config: TypoConfig) -> QueryKind {
|
||||
if authorize_typos && !config.exact_words.map_or(false, |s| s.contains(&word)) {
|
||||
let count = word.chars().count().min(u8::MAX as usize) as u8;
|
||||
if count < config.word_len_one_typo {
|
||||
|
@ -263,7 +263,7 @@ impl<'t, 'u, 'i> Facets<'t, 'u, 'i> {
|
||||
/// that must be inserted into the database.
|
||||
/// 2. a roaring bitmap of all the document ids present in the database
|
||||
fn compute_facet_number_levels(
|
||||
rtxn: &'_ heed::RoTxn,
|
||||
rtxn: &heed::RoTxn,
|
||||
db: heed::Database<FacetLevelValueF64Codec, CboRoaringBitmapCodec>,
|
||||
compression_type: CompressionType,
|
||||
compression_level: Option<u32>,
|
||||
|
Loading…
Reference in New Issue
Block a user