From da26dedfc888d080bd8d6bf434a4047e94949679 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 10 Feb 2021 11:53:15 +0100 Subject: [PATCH] Apply clippy suggestion --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b30f30a..235d86a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,7 +62,8 @@ impl Segmenter { out: &mut Vec, search: &mut Search, ) -> Result<(), InvalidCharacter> { - Ok(SegmentState::new(Ascii::new(text)?, &self, out, search).run()) + SegmentState::new(Ascii::new(text)?, &self, out, search).run(); + Ok(()) } fn score(&self, word: &str, previous: Option<&str>) -> f64 {