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 scrut_ty = scrut.ty;
|
||||||
let Ok(report) = analyze_match(&cx, &tarms, scrut_ty).map_err(|err| self.error = Err(err))
|
let report = match analyze_match(&cx, &tarms, scrut_ty) {
|
||||||
else {
|
Ok(report) => report,
|
||||||
return;
|
Err(err) => {
|
||||||
|
self.error = Err(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
match source {
|
match source {
|
||||||
|
Loading…
Reference in New Issue
Block a user