Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d39677c

Browse files
committed
Rename static_method_target -> assoc_fn_target
1 parent 39d17ef commit d39677c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ide-assists/src/handlers/generate_function.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ fn gen_fn(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
7878
}
7979
}
8080

81-
static_method_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
81+
assoc_fn_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
8282
}
8383
Some(hir::PathResolution::SelfType(impl_)) => {
8484
let adt = impl_.self_ty(ctx.db()).as_adt()?;
85-
static_method_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
85+
assoc_fn_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
8686
}
8787
_ => {
8888
return None;
@@ -394,7 +394,7 @@ fn get_method_target(
394394
Some((target.clone(), get_insert_offset(&target)))
395395
}
396396

397-
fn static_method_target(
397+
fn assoc_fn_target(
398398
ctx: &AssistContext<'_>,
399399
call: &CallExpr,
400400
adt: hir::Adt,

0 commit comments

Comments
 (0)