Use GenericArgList for make::impl{_trait}

`make::impl_` no longer merges generic params and args in order to be in line
with `make::impl_`, which doesn't do it either.
This commit is contained in:
DropDemBits 2023-12-10 21:20:09 -05:00
parent 13707845f7
commit 8c0661b2de
No known key found for this signature in database
GPG key ID: 7FE02A6C1EDFA075
2 changed files with 11 additions and 19 deletions

View file

@ -161,13 +161,13 @@ pub(crate) fn generate_delegate_methods(acc: &mut Assists, ctx: &AssistContext<'
Some(impl_def) => edit.make_mut(impl_def),
None => {
let name = &strukt_name.to_string();
let params = strukt.generic_param_list();
let ty_params = params;
let ty_params = strukt.generic_param_list();
let ty_args = ty_params.as_ref().map(|it| it.to_generic_args());
let where_clause = strukt.where_clause();
let impl_def = make::impl_(
ty_params,
None,
ty_args,
make::ty_path(make::ext::ident_path(name)),
where_clause,
None,