Skip to content

Commit 75b1f9e

Browse files
committed
Unify naming
1 parent 5328792 commit 75b1f9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/assists/src/ast_transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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())

crates/syntax/src/ast/edit.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,16 @@ impl ast::Path {
260260

261261
impl 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()),

0 commit comments

Comments
 (0)