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