mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Fix code after rowan version bump
This commit is contained in:
parent
5f5a3e6eae
commit
b67a91b960
@ -35,7 +35,7 @@ pub(crate) fn move_item(
|
|||||||
fn find_ancestors(item: SyntaxElement, direction: Direction) -> Option<TextEdit> {
|
fn find_ancestors(item: SyntaxElement, direction: Direction) -> Option<TextEdit> {
|
||||||
let root = match item {
|
let root = match item {
|
||||||
NodeOrToken::Node(node) => node,
|
NodeOrToken::Node(node) => node,
|
||||||
NodeOrToken::Token(token) => token.parent(),
|
NodeOrToken::Token(token) => token.parent()?,
|
||||||
};
|
};
|
||||||
|
|
||||||
let ancestor = once(root.clone())
|
let ancestor = once(root.clone())
|
||||||
|
Loading…
Reference in New Issue
Block a user