aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers/generate_impl.rs
diff options
context:
space:
mode:
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