Remove unnecessary return keyword.

This commit is contained in:
Nicholas Nethercote 2024-10-07 10:01:37 +11:00
parent 1dac23f6fe
commit 3b1eee7755

View File

@ -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);