Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/utils.rs')
-rw-r--r--crates/ide-assists/src/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-assists/src/utils.rs b/crates/ide-assists/src/utils.rs
index 0f28a20225..2f40f889fc 100644
--- a/crates/ide-assists/src/utils.rs
+++ b/crates/ide-assists/src/utils.rs
@@ -1219,10 +1219,10 @@ pub(crate) fn cover_let_chain(mut expr: ast::Expr, range: TextRange) -> Option<a
}
pub(crate) fn cover_edit_range(
- source: &impl AstNode,
+ source: &SyntaxNode,
range: TextRange,
) -> std::ops::RangeInclusive<syntax::SyntaxElement> {
- let node = match source.syntax().covering_element(range) {
+ let node = match source.covering_element(range) {
NodeOrToken::Node(node) => node,
NodeOrToken::Token(t) => t.parent().unwrap(),
};