Apply clippy suggestions for Rust 1.78
This commit is contained in:
parent
618ed481fe
commit
3603278c21
|
@ -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