Don't mix combinators and let else
Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
parent
4b2e8bc841
commit
f0511851bc
@ -430,9 +430,12 @@ fn check_match(
|
||||
}
|
||||
|
||||
let scrut_ty = scrut.ty;
|
||||
let Ok(report) = analyze_match(&cx, &tarms, scrut_ty).map_err(|err| self.error = Err(err))
|
||||
else {
|
||||
let report = match analyze_match(&cx, &tarms, scrut_ty) {
|
||||
Ok(report) => report,
|
||||
Err(err) => {
|
||||
self.error = Err(err);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
match source {
|
||||
|
Loading…
Reference in New Issue
Block a user