diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-03 11:23:08 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-03 11:23:08 +0100 |
commit | a000346ab2c5851b65eca601996933ba611d2d32 (patch) | |
tree | 131e97cbfb00a05592e3b2f50f27154b56cbb0e8 /crates/syntax/src/ast | |
parent | d2c3832a8a95b7f00c201f1c98335412ff845afb (diff) | |
parent | 75b1f9ee23e1702901d08707689690308d74953d (diff) |
Merge #5941
5941: Unify naming
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r-- | crates/syntax/src/ast/edit.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/syntax/src/ast/edit.rs b/crates/syntax/src/ast/edit.rs index 060b20966..823475333 100644 --- a/crates/syntax/src/ast/edit.rs +++ b/crates/syntax/src/ast/edit.rs | |||
@@ -260,16 +260,16 @@ impl ast::Path { | |||
260 | 260 | ||
261 | impl ast::PathSegment { | 261 | impl ast::PathSegment { |
262 | #[must_use] | 262 | #[must_use] |
263 | pub fn with_type_args(&self, type_args: ast::GenericArgList) -> ast::PathSegment { | 263 | pub fn with_generic_args(&self, type_args: ast::GenericArgList) -> ast::PathSegment { |
264 | self._with_type_args(type_args, false) | 264 | self._with_generic_args(type_args, false) |
265 | } | 265 | } |
266 | 266 | ||
267 | #[must_use] | 267 | #[must_use] |
268 | pub fn with_turbo_fish(&self, type_args: ast::GenericArgList) -> ast::PathSegment { | 268 | 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) |
270 | } | 270 | } |
271 | 271 | ||
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 { |
273 | if let Some(old) = self.generic_arg_list() { | 273 | if let Some(old) = self.generic_arg_list() { |
274 | return self.replace_children( | 274 | return self.replace_children( |
275 | single_node(old.syntax().clone()), | 275 | single_node(old.syntax().clone()), |