diff options
author | ivan770 <[email protected]> | 2021-03-16 15:39:49 +0000 |
---|---|---|
committer | ivan770 <[email protected]> | 2021-03-18 09:22:28 +0000 |
commit | b67a91b96043fb750698f909354a5b73c1929e5d (patch) | |
tree | 52674d80e77d6ba414e14083636e56c04a9e666c /crates/ide | |
parent | 5f5a3e6eaecbe63916756c6706aef17792e46c06 (diff) |
Fix code after rowan version bump
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/move_item.rs | 2 |
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( | |||
35 | fn find_ancestors(item: SyntaxElement, direction: Direction) -> Option<TextEdit> { | 35 | fn 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()) |