Skip to content

Commit ac6ff3a

Browse files
committed
Remove unnecessary return keyword.
1 parent 72f8dde commit ac6ff3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/resolve.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl<'a, 'tcx> TypeFolder<TyCtxt<'tcx>> for OpportunisticVarResolver<'a, 'tcx> {
3838
if !t.has_non_region_infer() {
3939
t // micro-optimize -- if there is nothing in this type that this fold affects...
4040
} else if let Some(&ty) = self.cache.get(&t) {
41-
return ty;
41+
ty
4242
} else {
4343
let shallow = self.infcx.shallow_resolve(t);
4444
let res = shallow.super_fold_with(self);

0 commit comments

Comments
 (0)