feat: Implement inline_method assist
This commit is contained in:
@@ -256,10 +256,9 @@ fn fn_args(
|
||||
});
|
||||
}
|
||||
deduplicate_arg_names(&mut arg_names);
|
||||
let params = arg_names
|
||||
.into_iter()
|
||||
.zip(arg_types)
|
||||
.map(|(name, ty)| make::param(make::ident_pat(make::name(&name)).into(), make::ty(&ty)));
|
||||
let params = arg_names.into_iter().zip(arg_types).map(|(name, ty)| {
|
||||
make::param(make::ext::simple_ident_pat(make::name(&name)).into(), make::ty(&ty))
|
||||
});
|
||||
Some((None, make::param_list(None, params)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user