Use term on label for generating method impl

This commit is contained in:
Ryan Levick 2021-08-12 13:59:08 +02:00
parent 1376ece497
commit e8de34b6b3

View file

@ -138,7 +138,7 @@ fn gen_method(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
acc.add( acc.add(
AssistId("generate_function", AssistKind::Generate), AssistId("generate_function", AssistKind::Generate),
format!("Generate `{}` function", function_builder.fn_name), format!("Generate `{}` method", function_builder.fn_name),
target, target,
|builder| { |builder| {
let function_template = function_builder.render(); let function_template = function_builder.render();