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, &self,
input: &str, input: &str,
search: &'a mut Search, 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); let state = SegmentState::new(Ascii::new(input)?, self, search);
if !input.is_empty() { if !input.is_empty() {
state.run(); state.run();