Fix usage in other assist

This commit is contained in:
Niklas Lindorfer 2024-02-27 16:06:10 +00:00
parent 7c30c70658
commit dc7b502689
No known key found for this signature in database
GPG Key ID: D19D86B8C7F455A8

View File

@ -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()));