mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-08-12 09:19:39 +00:00
Apply suggestions from code review
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user