@@ -195,10 +195,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
195195 let Trace { at, trace, a_is_expected } = self ;
196196 at. infcx . commit_if_ok ( |_| {
197197 let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
198- fields. sub ( a_is_expected ) . relate ( a , b ) . map ( move |_| {
199- let _ = & fields ;
200- InferOk { value : ( ) , obligations : fields . obligations }
201- } )
198+ fields
199+ . sub ( a_is_expected )
200+ . relate ( a , b )
201+ . map ( move |_| InferOk { value : ( ) , obligations : fields . obligations } )
202202 } )
203203 }
204204
@@ -212,10 +212,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
212212 let Trace { at, trace, a_is_expected } = self ;
213213 at. infcx . commit_if_ok ( |_| {
214214 let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
215- fields. equate ( a_is_expected ) . relate ( a , b ) . map ( move |_| {
216- let _ = & fields ;
217- InferOk { value : ( ) , obligations : fields . obligations }
218- } )
215+ fields
216+ . equate ( a_is_expected )
217+ . relate ( a , b )
218+ . map ( move |_| InferOk { value : ( ) , obligations : fields . obligations } )
219219 } )
220220 }
221221
@@ -227,10 +227,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
227227 let Trace { at, trace, a_is_expected } = self ;
228228 at. infcx . commit_if_ok ( |_| {
229229 let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
230- fields. lub ( a_is_expected ) . relate ( a , b ) . map ( move |t| {
231- let _ = & fields ;
232- InferOk { value : t , obligations : fields . obligations }
233- } )
230+ fields
231+ . lub ( a_is_expected )
232+ . relate ( a , b )
233+ . map ( move |t| InferOk { value : t , obligations : fields . obligations } )
234234 } )
235235 }
236236
@@ -242,10 +242,10 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
242242 let Trace { at, trace, a_is_expected } = self ;
243243 at. infcx . commit_if_ok ( |_| {
244244 let mut fields = at. infcx . combine_fields ( trace, at. param_env ) ;
245- fields. glb ( a_is_expected ) . relate ( a , b ) . map ( move |t| {
246- let _ = & fields ;
247- InferOk { value : t , obligations : fields . obligations }
248- } )
245+ fields
246+ . glb ( a_is_expected )
247+ . relate ( a , b )
248+ . map ( move |t| InferOk { value : t , obligations : fields . obligations } )
249249 } )
250250 }
251251}
0 commit comments