aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers/generate_impl.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-07 11:15:26 +0000
committerGitHub <[email protected]>2021-02-07 11:15:26 +0000
commit336909b63a14b801520c6627d90d750babcfe280 (patch)
treeb5b73fc760b261fafda58a3e20e04b8e74559c60 /crates/assists/src/handlers/generate_impl.rs
parent75a87ec198b25c5938c651ef087f9ebf923c34f8 (diff)
parent7022ea52b5f2a0262c2cd96b290ddb8ec0af0df9 (diff)
Merge #7587
7587: AdtDef -> Adt r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/assists/src/handlers/generate_impl.rs')
-rw-r--r--crates/assists/src/handlers/generate_impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/handlers/generate_impl.rs b/crates/assists/src/handlers/generate_impl.rs
index 827477272..61d1bd25c 100644
--- a/crates/assists/src/handlers/generate_impl.rs
+++ b/crates/assists/src/handlers/generate_impl.rs
@@ -27,7 +27,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists};
27// } 27// }
28// ``` 28// ```
29pub(crate) fn generate_impl(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { 29pub(crate) fn generate_impl(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
30 let nominal = ctx.find_node_at_offset::<ast::AdtDef>()?; 30 let nominal = ctx.find_node_at_offset::<ast::Adt>()?;
31 let name = nominal.name()?; 31 let name = nominal.name()?;
32 let target = nominal.syntax().text_range(); 32 let target = nominal.syntax().text_range();
33 33