Apply clippy suggestion
This commit is contained in:
parent
a862ec97a5
commit
da26dedfc8
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue