mirror of
https://github.com/instant-labs/instant-segment.git
synced 2025-03-03 04:12:03 +00:00
Fix clippy lint
This commit is contained in:
parent
f16306499c
commit
edfad13ddc
@ -62,7 +62,7 @@ impl Segmenter {
|
||||
input: &str,
|
||||
search: &'a mut Search,
|
||||
) -> 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()))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user