Fix clippy lint

This commit is contained in:
Dirkjan Ochtman 2021-08-31 14:09:23 +02:00
parent f16306499c
commit edfad13ddc
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ impl Segmenter {
input: &str, input: &str,
search: &'a mut Search, search: &'a mut Search,
) -> Result<impl Iterator<Item = &'a str> + ExactSizeIterator, InvalidCharacter> { ) -> Result<impl Iterator<Item = &'a str> + ExactSizeIterator, InvalidCharacter> {
SegmentState::new(Ascii::new(input)?, &self, search).run(); SegmentState::new(Ascii::new(input)?, self, search).run();
Ok(search.result.iter().map(|v| v.as_str())) Ok(search.result.iter().map(|v| v.as_str()))
} }