aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 17:29:29 +0100
committerAleksey Kladov <[email protected]>2020-07-31 17:29:29 +0100
commit91781c7ce8201b28afd56b4e35eba47e076a8498 (patch)
treefa5d495950dfec53ed221c921d5d017fa024c1b8 /crates/ra_assists/src
parent54fd09a9ca567fc79cae53237dfeedc5baeec635 (diff)
Rename TypeArgList -> GenericArgList
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/ast_transform.rs4
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();