Fix mystem stdin feed.

This commit is contained in:
AB committed 2021-01-10 21:16:49 +03:00
1 parent 82c8e51c94
commit 30ff6a9c46
4 files changed
+14 -8

No files matched your search

+3 -4
View File
@@ -23,11 +23,10 @@ fn main() -> Result<(), mystem::AppError> {
}
},
{
match stem.lex.len()
{
0|1 => "".to_string(),
match stem.lex.len() {
0 | 1 => "".to_string(),
x if x > 1 => format!(" Also has {} found lexems.", x),
_ => unreachable!()
_ => unreachable!(),
}
}
)