aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
Diffstat (limited to 'crates/assists')
-rw-r--r--crates/assists/src/ast_transform.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/ast_transform.rs b/crates/assists/src/ast_transform.rs
index 66e4634b1..da94e9987 100644
--- a/crates/assists/src/ast_transform.rs
+++ b/crates/assists/src/ast_transform.rs
@@ -89,7 +89,7 @@ impl<'a> SubstituteTypeParams<'a> {
89 let substs = get_syntactic_substs(impl_def).unwrap_or_default(); 89 let substs = get_syntactic_substs(impl_def).unwrap_or_default();
90 let generic_def: hir::GenericDef = trait_.into(); 90 let generic_def: hir::GenericDef = trait_.into();
91 let substs_by_param: FxHashMap<_, _> = generic_def 91 let substs_by_param: FxHashMap<_, _> = generic_def
92 .params(source_scope.db) 92 .type_params(source_scope.db)
93 .into_iter() 93 .into_iter()
94 // this is a trait impl, so we need to skip the first type parameter -- this is a bit hacky 94 // this is a trait impl, so we need to skip the first type parameter -- this is a bit hacky
95 .skip(1) 95 .skip(1)