mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-09-11 07:42:22 +00:00
This fixes the TODO in two ways: If the stemmer already yields an owned string, it is used directly as the new text of the token. Otherwise, a temporary buffer is used to copy the stemmed text (just as before) and then swapping it into the token to reuse its existing buffer.