Remove warnings

This commit is contained in:
ManyTheFish 2023-04-06 14:07:18 +02:00
parent a1148c09c2
commit ae17c62e24

View File

@ -5,9 +5,6 @@ pub use matching_words::MatchingWords;
use matching_words::{MatchType, PartialMatch, WordId}; use matching_words::{MatchType, PartialMatch, WordId};
use serde::Serialize; use serde::Serialize;
use super::query_term::LocatedQueryTerm;
use crate::SearchContext;
pub mod matching_words; pub mod matching_words;
const DEFAULT_CROP_MARKER: &str = ""; const DEFAULT_CROP_MARKER: &str = "";
@ -504,6 +501,7 @@ mod tests {
use super::super::located_query_terms_from_string; use super::super::located_query_terms_from_string;
use super::*; use super::*;
use crate::SearchContext;
impl<'a, 'ctx> MatcherBuilder<'a, &[u8]> { impl<'a, 'ctx> 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 {