Remove unnecessary return
keyword.
This commit is contained in:
parent
1dac23f6fe
commit
3b1eee7755
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ impl<'a, 'tcx> TypeFolder<TyCtxt<'tcx>> for OpportunisticVarResolver<'a, '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…
Add table
Add a link
Reference in a new issue