diff options
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/ast_transform.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/ast_transform.rs b/crates/ra_assists/src/ast_transform.rs index 3265bd406..e23331773 100644 --- a/crates/ra_assists/src/ast_transform.rs +++ b/crates/ra_assists/src/ast_transform.rs | |||
@@ -86,7 +86,7 @@ impl<'a> SubstituteTypeParams<'a> { | |||
86 | ast::Type::PathType(path) => path, | 86 | ast::Type::PathType(path) => path, |
87 | _ => return None, | 87 | _ => return None, |
88 | }; | 88 | }; |
89 | let type_arg_list = path_type.path()?.segment()?.type_arg_list()?; | 89 | let type_arg_list = path_type.path()?.segment()?.generic_arg_list()?; |
90 | let mut result = Vec::new(); | 90 | let mut result = Vec::new(); |
91 | for type_arg in type_arg_list.type_args() { | 91 | for type_arg in type_arg_list.type_args() { |
92 | let type_arg: ast::TypeArg = type_arg; | 92 | let type_arg: ast::TypeArg = type_arg; |
@@ -157,7 +157,7 @@ impl<'a> QualifyPaths<'a> { | |||
157 | 157 | ||
158 | let type_args = p | 158 | let type_args = p |
159 | .segment() | 159 | .segment() |
160 | .and_then(|s| s.type_arg_list()) | 160 | .and_then(|s| s.generic_arg_list()) |
161 | .map(|arg_list| apply(self, arg_list)); | 161 | .map(|arg_list| apply(self, arg_list)); |
162 | if let Some(type_args) = type_args { | 162 | if let Some(type_args) = type_args { |
163 | let last_segment = path.segment().unwrap(); | 163 | let last_segment = path.segment().unwrap(); |