diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-09 16:55:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-09 16:55:42 +0100 |
commit | a3b034938ebe12b29ef37ff6e54bad3c574464be (patch) | |
tree | 1ed28e5499d4db6948c18f96e2136a2f61f5e222 /crates/ide_assists/src/handlers/extract_variable.rs | |
parent | 0900beeaa2ca4b9e91d51165545935d4e1db7bb6 (diff) | |
parent | 5342800147679a0ded5546322c94aa6339d58fbc (diff) |
Merge #8781
8781: internal: rewrite **Repalce impl Trait** assist to mutable syntax trees r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide_assists/src/handlers/extract_variable.rs')
-rw-r--r-- | crates/ide_assists/src/handlers/extract_variable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/extract_variable.rs b/crates/ide_assists/src/handlers/extract_variable.rs index 136b9a55b..ae084c86c 100644 --- a/crates/ide_assists/src/handlers/extract_variable.rs +++ b/crates/ide_assists/src/handlers/extract_variable.rs | |||
@@ -54,7 +54,7 @@ pub(crate) fn extract_variable(acc: &mut Assists, ctx: &AssistContext) -> Option | |||
54 | 54 | ||
55 | let var_name = match &field_shorthand { | 55 | let var_name = match &field_shorthand { |
56 | Some(it) => it.to_string(), | 56 | Some(it) => it.to_string(), |
57 | None => suggest_name::variable(&to_extract, &ctx.sema), | 57 | None => suggest_name::for_variable(&to_extract, &ctx.sema), |
58 | }; | 58 | }; |
59 | let expr_range = match &field_shorthand { | 59 | let expr_range = match &field_shorthand { |
60 | Some(it) => it.syntax().text_range().cover(to_extract.syntax().text_range()), | 60 | Some(it) => it.syntax().text_range().cover(to_extract.syntax().text_range()), |