Fix usage in other assist
This commit is contained in:
parent
7c30c70658
commit
dc7b502689
@ -42,7 +42,8 @@ pub(crate) fn fill_record_pattern_fields(acc: &mut Assists, ctx: &AssistContext<
|
|||||||
}
|
}
|
||||||
|
|
||||||
let old_field_list = record_pat.record_pat_field_list()?;
|
let old_field_list = record_pat.record_pat_field_list()?;
|
||||||
let new_field_list = make::record_pat_field_list(old_field_list.fields()).clone_for_update();
|
let new_field_list =
|
||||||
|
make::record_pat_field_list(old_field_list.fields(), None).clone_for_update();
|
||||||
for (f, _) in missing_fields.iter() {
|
for (f, _) in missing_fields.iter() {
|
||||||
let field =
|
let field =
|
||||||
make::record_pat_field_shorthand(make::name_ref(&f.name(ctx.sema.db).to_smol_str()));
|
make::record_pat_field_shorthand(make::name_ref(&f.name(ctx.sema.db).to_smol_str()));
|
||||||
|
Loading…
Reference in New Issue
Block a user