fix clippy::toplevel_ref_arg and ::manual_map
This commit is contained in:
@@ -234,15 +234,12 @@ fn resolve_associated_item<'tcx>(
|
||||
_ => None,
|
||||
},
|
||||
traits::ImplSource::Object(ref data) => {
|
||||
if let Some(index) = traits::get_vtable_index_of_object_method(tcx, data, trait_item_id)
|
||||
{
|
||||
Some(Instance {
|
||||
traits::get_vtable_index_of_object_method(tcx, data, trait_item_id).map(|index| {
|
||||
Instance {
|
||||
def: ty::InstanceDef::Virtual(trait_item_id, index),
|
||||
substs: rcvr_substs,
|
||||
})
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
traits::ImplSource::Builtin(..) => {
|
||||
let lang_items = tcx.lang_items();
|
||||
|
||||
Reference in New Issue
Block a user