Remove unnecessary return
keyword.
This commit is contained in:
parent
1dac23f6fe
commit
3b1eee7755
@ -38,7 +38,7 @@ fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
|
||||
if !t.has_non_region_infer() {
|
||||
t // micro-optimize -- if there is nothing in this type that this fold affects...
|
||||
} else if let Some(&ty) = self.cache.get(&t) {
|
||||
return ty;
|
||||
ty
|
||||
} else {
|
||||
let shallow = self.infcx.shallow_resolve(t);
|
||||
let res = shallow.super_fold_with(self);
|
||||
|
Loading…
Reference in New Issue
Block a user