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
1 changed files with 3 additions and 1 deletions

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