Skip to content

Commit e27af5f

Browse files
committed
Reorder args with flip_comma
1 parent e513d7b commit e27af5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn gen_fn(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
6262

6363
let fn_name = &*name_ref.text();
6464
let TargetInfo { target_module, adt_name, target, file, insert_offset } =
65-
fn_target_info(path, ctx, &call, fn_name)?;
65+
fn_target_info(ctx, path, &call, fn_name)?;
6666
let function_builder = FunctionBuilder::from_call(ctx, &call, fn_name, target_module, target)?;
6767
let text_range = call.syntax().text_range();
6868
let label = format!("Generate {} function", function_builder.fn_name);
@@ -87,8 +87,8 @@ struct TargetInfo {
8787
}
8888

8989
fn fn_target_info(
90-
path: ast::Path,
9190
ctx: &AssistContext<'_>,
91+
path: ast::Path,
9292
call: &CallExpr,
9393
fn_name: &str,
9494
) -> Option<TargetInfo> {

0 commit comments

Comments
 (0)