Apply suggestions from code review

This commit is contained in:
Paul Masurel
2022-03-01 18:37:51 +09:00
committed by GitHub
parent 091b668624
commit 848b795b9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1527,7 +1527,7 @@ fn fold_non_ascii_char(c: char) -> Option<&'static str> {
}
// https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java#L187
fn to_ascii(text: &mut str, output: &mut String) {
fn to_ascii(text: &str, output: &mut String) {
output.clear();
for c in text.chars() {
+1 -1
View File
@@ -22,7 +22,7 @@ pub struct LowerCaserTokenStream<'a> {
}
// writes a lowercased version of text into output.
fn to_lowercase_unicode(text: &mut str, output: &mut String) {
fn to_lowercase_unicode(text: &str, output: &mut String) {
output.clear();
for c in text.chars() {
// Contrary to the std, we do not take care of sigma special case.