File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_traits/chalk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
276
276
parameters[ 0 ] . assert_ty_ref ( & self . interner ) . could_match ( & self . interner , & lowered_ty)
277
277
} ) ;
278
278
279
- let impls = matched_impls. map ( |matched_impl| chalk_ir:: ImplId ( matched_impl ) ) . collect ( ) ;
279
+ let impls = matched_impls. map ( chalk_ir:: ImplId ) . collect ( ) ;
280
280
impls
281
281
}
282
282
@@ -440,7 +440,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
440
440
FnOnce => self . tcx . lang_items ( ) . fn_once_trait ( ) ,
441
441
Unsize => self . tcx . lang_items ( ) . unsize_trait ( ) ,
442
442
} ;
443
- def_id. map ( |t| chalk_ir:: TraitId ( t ) )
443
+ def_id. map ( chalk_ir:: TraitId )
444
444
}
445
445
446
446
fn is_object_safe ( & self , trait_id : chalk_ir:: TraitId < RustInterner < ' tcx > > ) -> bool {
You can’t perform that action at this time.
0 commit comments