Apply clippy suggestions for Rust 1.78

This commit is contained in:
Dirkjan Ochtman 2024-05-29 11:01:35 +02:00
parent 618ed481fe
commit a3f5f9b92c
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ impl Segmenter {
&self,
input: &str,
search: &'a mut Search,
) -> Result<impl Iterator<Item = &'a str> + ExactSizeIterator, InvalidCharacter> {
) -> Result<impl ExactSizeIterator<Item = &'a str>, InvalidCharacter> {
let state = SegmentState::new(Ascii::new(input)?, self, search);
if !input.is_empty() {
state.run();