Skip to content

Commit

Permalink
Fix usage in other assist
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindronics committed Feb 29, 2024
1 parent 7c30c70 commit dc7b502
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 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() {
let field =
make::record_pat_field_shorthand(make::name_ref(&f.name(ctx.sema.db).to_smol_str()));
Expand Down

0 comments on commit dc7b502

Please sign in to comment.