Fix new clippy warnings

This commit is contained in:
ayazhafiz 2022-02-27 20:41:07 -05:00
parent 27a50a3e6b
commit a62fd31ab6
2 changed files with 16 additions and 16 deletions

View file

@ -121,12 +121,11 @@ pub fn check_patterns<'a>(
) {
match to_nonredundant_rows(region, patterns) {
Err(err) => errors.push(err),
Ok(matrix) => match roc_exhaustive::check(region, context, matrix) {
Err(err) => {
Ok(matrix) => {
if let Err(err) = roc_exhaustive::check(region, context, matrix) {
*errors = err;
}
Ok(_) => {}
},
}
}
}