mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use term on label for generating method impl
This commit is contained in:
parent
1376ece497
commit
e8de34b6b3
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue