Fix clippy lint
This commit is contained in:
parent
f16306499c
commit
edfad13ddc
|
@ -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()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue