Fix unused_imports warning in milli when japanese is not enabled

This commit is contained in:
Jakub Jirutka 2023-05-04 15:46:11 +02:00
parent 13f1277637
commit e615fa5ec6

View File

@ -201,12 +201,14 @@ pub fn build_dfa(word: &str, typos: u8, is_prefix: bool) -> DFA {
#[cfg(test)]
mod test {
#[allow(unused_imports)]
use super::*;
use crate::index::tests::TempIndex;
#[cfg(feature = "japanese")]
#[test]
fn test_kanji_language_detection() {
use crate::index::tests::TempIndex;
let index = TempIndex::new();
index