diff --git a/src/tokenizer/ascii_folding_filter.rs b/src/tokenizer/ascii_folding_filter.rs index 3e800971b7..56b4dfac77 100644 --- a/src/tokenizer/ascii_folding_filter.rs +++ b/src/tokenizer/ascii_folding_filter.rs @@ -29,7 +29,7 @@ impl<'a> TokenStream for AsciiFoldingFilterTokenStream<'a> { } if !self.token_mut().text.is_ascii() { // ignore its already ascii - to_ascii(&mut self.tail.token_mut().text, &mut self.buffer); + to_ascii(&self.tail.token().text, &mut self.buffer); mem::swap(&mut self.tail.token_mut().text, &mut self.buffer); } true diff --git a/src/tokenizer/lower_caser.rs b/src/tokenizer/lower_caser.rs index 2136b0063f..c6bc7b225d 100644 --- a/src/tokenizer/lower_caser.rs +++ b/src/tokenizer/lower_caser.rs @@ -40,7 +40,7 @@ impl<'a> TokenStream for LowerCaserTokenStream<'a> { // fast track for ascii. self.token_mut().text.make_ascii_lowercase(); } else { - to_lowercase_unicode(&mut self.tail.token_mut().text, &mut self.buffer); + to_lowercase_unicode(&self.tail.token().text, &mut self.buffer); mem::swap(&mut self.tail.token_mut().text, &mut self.buffer); } true