aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorivan770 <[email protected]>2021-03-16 15:39:49 +0000
committerivan770 <[email protected]>2021-03-18 09:22:28 +0000
commitb67a91b96043fb750698f909354a5b73c1929e5d (patch)
tree52674d80e77d6ba414e14083636e56c04a9e666c /crates
parent5f5a3e6eaecbe63916756c6706aef17792e46c06 (diff)
Fix code after rowan version bump
Diffstat (limited to 'crates')
-rw-r--r--crates/ide/src/move_item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/move_item.rs b/crates/ide/src/move_item.rs
index 5a0faaf7b..dbbf2f4c9 100644
--- a/crates/ide/src/move_item.rs
+++ b/crates/ide/src/move_item.rs
@@ -35,7 +35,7 @@ pub(crate) fn move_item(
35fn find_ancestors(item: SyntaxElement, direction: Direction) -> Option<TextEdit> { 35fn find_ancestors(item: SyntaxElement, direction: Direction) -> Option<TextEdit> {
36 let root = match item { 36 let root = match item {
37 NodeOrToken::Node(node) => node, 37 NodeOrToken::Node(node) => node,
38 NodeOrToken::Token(token) => token.parent(), 38 NodeOrToken::Token(token) => token.parent()?,
39 }; 39 };
40 40
41 let ancestor = once(root.clone()) 41 let ancestor = once(root.clone())