Apply clippy suggestions for Rust 1.78
This commit is contained in:
parent
618ed481fe
commit
a3f5f9b92c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue