diff options
Diffstat (limited to 'src/librustc/infer/resolve.rs')
| -rw-r--r-- | src/librustc/infer/resolve.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/infer/resolve.rs b/src/librustc/infer/resolve.rs index 0ef97618572..a0c310ac276 100644 --- a/src/librustc/infer/resolve.rs +++ b/src/librustc/infer/resolve.rs @@ -26,7 +26,7 @@ pub struct OpportunisticTypeResolver<'a, 'gcx: 'a+'tcx, 'tcx: 'a> { impl<'a, 'gcx, 'tcx> OpportunisticTypeResolver<'a, 'gcx, 'tcx> { pub fn new(infcx: &'a InferCtxt<'a, 'gcx, 'tcx>) -> Self { - OpportunisticTypeResolver { infcx: infcx } + OpportunisticTypeResolver { infcx } } } @@ -54,7 +54,7 @@ pub struct OpportunisticTypeAndRegionResolver<'a, 'gcx: 'a+'tcx, 'tcx: 'a> { impl<'a, 'gcx, 'tcx> OpportunisticTypeAndRegionResolver<'a, 'gcx, 'tcx> { pub fn new(infcx: &'a InferCtxt<'a, 'gcx, 'tcx>) -> Self { - OpportunisticTypeAndRegionResolver { infcx: infcx } + OpportunisticTypeAndRegionResolver { infcx } } } |
