Skip to content

Commit

Permalink
Remove unnecessary return keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Oct 8, 2024
1 parent 1dac23f commit 3b1eee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b1eee7

Please sign in to comment.