Fix mystem stdin feed.

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

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!(),
}
}
)