Rollup merge of #130114 - eduardosm:needless-returns, r=compiler-errors
Remove needless returns detected by clippy in the compiler
This commit is contained in:
commit
a31a8fe0cf
38 changed files with 66 additions and 75 deletions
|
@ -1481,7 +1481,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
// This hoists the borrow/release out of the loop body.
|
||||
let inner = self.inner.try_borrow();
|
||||
|
||||
return move |infer_var: TyOrConstInferVar| match (infer_var, &inner) {
|
||||
move |infer_var: TyOrConstInferVar| match (infer_var, &inner) {
|
||||
(TyOrConstInferVar::Ty(ty_var), Ok(inner)) => {
|
||||
use self::type_variable::TypeVariableValue;
|
||||
|
||||
|
@ -1491,7 +1491,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
)
|
||||
}
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// `ty_or_const_infer_var_changed` is equivalent to one of these two:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue