Fix clippy

This commit is contained in:
ManyTheFish 2023-04-06 15:50:47 +02:00
parent 1ba8a40d61
commit ba8dcc2d78

View File

@ -503,7 +503,7 @@ mod tests {
use super::*; use super::*;
use crate::SearchContext; use crate::SearchContext;
impl<'a, 'ctx> MatcherBuilder<'a, &[u8]> { impl<'a> MatcherBuilder<'a, &[u8]> {
pub fn new_test(mut ctx: SearchContext, query: &'a str) -> Self { pub fn new_test(mut ctx: SearchContext, query: &'a str) -> Self {
let tokenizer = TokenizerBuilder::new().build(); let tokenizer = TokenizerBuilder::new().build();
let tokens = tokenizer.tokenize(query); let tokens = tokenizer.tokenize(query);