mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +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> {
|
||||
let root = match item {
|
||||
NodeOrToken::Node(node) => node,
|
||||
NodeOrToken::Token(token) => token.parent(),
|
||||
NodeOrToken::Token(token) => token.parent()?,
|
||||
};
|
||||
|
||||
let ancestor = once(root.clone())
|
||||
|
Loading…
Reference in New Issue
Block a user