File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ impl<'a> QualifyPaths<'a> {
166166 . map ( |arg_list| apply ( self , arg_list) ) ;
167167 if let Some ( type_args) = type_args {
168168 let last_segment = path. segment ( ) . unwrap ( ) ;
169- path = path. with_segment ( last_segment. with_type_args ( type_args) )
169+ path = path. with_segment ( last_segment. with_generic_args ( type_args) )
170170 }
171171
172172 Some ( path. syntax ( ) . clone ( ) )
Original file line number Diff line number Diff line change @@ -260,16 +260,16 @@ impl ast::Path {
260260
261261impl ast:: PathSegment {
262262 #[ must_use]
263- pub fn with_type_args ( & self , type_args : ast:: GenericArgList ) -> ast:: PathSegment {
264- self . _with_type_args ( type_args, false )
263+ pub fn with_generic_args ( & self , type_args : ast:: GenericArgList ) -> ast:: PathSegment {
264+ self . _with_generic_args ( type_args, false )
265265 }
266266
267267 #[ must_use]
268268 pub fn with_turbo_fish ( & self , type_args : ast:: GenericArgList ) -> ast:: PathSegment {
269- self . _with_type_args ( type_args, true )
269+ self . _with_generic_args ( type_args, true )
270270 }
271271
272- fn _with_type_args ( & self , type_args : ast:: GenericArgList , turbo : bool ) -> ast:: PathSegment {
272+ fn _with_generic_args ( & self , type_args : ast:: GenericArgList , turbo : bool ) -> ast:: PathSegment {
273273 if let Some ( old) = self . generic_arg_list ( ) {
274274 return self . replace_children (
275275 single_node ( old. syntax ( ) . clone ( ) ) ,
You can’t perform that action at this time.
0 commit comments