Apply clippy suggestion

This commit is contained in:
Dirkjan Ochtman 2021-02-10 11:53:15 +01:00
parent a862ec97a5
commit da26dedfc8
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ impl Segmenter {
out: &mut Vec<String>, out: &mut Vec<String>,
search: &mut Search, search: &mut Search,
) -> Result<(), InvalidCharacter> { ) -> 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 { fn score(&self, word: &str, previous: Option<&str>) -> f64 {