diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 13:12:04 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 13:20:33 +0100 |
commit | b1332670c7c471a59f3da113b366e74ac194c38b (patch) | |
tree | 819460af798651f204d855def0c27b02ed4856fd /crates/ra_syntax/src/ast/edit.rs | |
parent | e381c02ef304fdeafde1c94afd1a10c2085ab716 (diff) |
Rename UseItem -> Use
Diffstat (limited to 'crates/ra_syntax/src/ast/edit.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs index 2e958fa23..6ebe10ff6 100644 --- a/crates/ra_syntax/src/ast/edit.rs +++ b/crates/ra_syntax/src/ast/edit.rs | |||
@@ -262,9 +262,9 @@ impl ast::PathSegment { | |||
262 | } | 262 | } |
263 | } | 263 | } |
264 | 264 | ||
265 | impl ast::UseItem { | 265 | impl ast::Use { |
266 | #[must_use] | 266 | #[must_use] |
267 | pub fn with_use_tree(&self, use_tree: ast::UseTree) -> ast::UseItem { | 267 | pub fn with_use_tree(&self, use_tree: ast::UseTree) -> ast::Use { |
268 | if let Some(old) = self.use_tree() { | 268 | if let Some(old) = self.use_tree() { |
269 | return self.replace_descendant(old, use_tree); | 269 | return self.replace_descendant(old, use_tree); |
270 | } | 270 | } |