From a3f5f9b92c7b7b93650e1f74b368e68576d3947d Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 29 May 2024 11:01:35 +0200 Subject: [PATCH] Apply clippy suggestions for Rust 1.78 --- instant-segment/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instant-segment/src/lib.rs b/instant-segment/src/lib.rs index 74ba049..9a045fa 100644 --- a/instant-segment/src/lib.rs +++ b/instant-segment/src/lib.rs @@ -77,7 +77,7 @@ impl Segmenter { &self, input: &str, search: &'a mut Search, - ) -> Result + ExactSizeIterator, InvalidCharacter> { + ) -> Result, InvalidCharacter> { let state = SegmentState::new(Ascii::new(input)?, self, search); if !input.is_empty() { state.run();