diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e36292ff..2df00d21 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,7 @@ jobs: - name: Run tests with japanese-transliteration on run: cargo test --verbose --features japanese-transliteration - name: Run tests with chinese-normalization-pinyin on - run: cargo test --verbose --features chinese chinese-normalization-pinyin + run: cargo test --verbose --features chinese-normalization-pinyin - name: Run tests with swedish-recomposition on run: cargo test --verbose --features swedish-recomposition - name: Run irg-kvariants tests diff --git a/charabia/src/normalizer/chinese.rs b/charabia/src/normalizer/chinese.rs index 3b3d8ec0..c1e4a1ba 100644 --- a/charabia/src/normalizer/chinese.rs +++ b/charabia/src/normalizer/chinese.rs @@ -31,7 +31,7 @@ impl CharNormalizer for ChineseNormalizer { with_tone.to_string() } - None => kvariant, // e.g. 杤 + None => kvariant.to_string(), // e.g. 杤 }; Some(kvariant.into())