aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_expand')
-rw-r--r--crates/hir_expand/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/lib.rs b/crates/hir_expand/src/lib.rs
index eee430af1..7532d00b8 100644
--- a/crates/hir_expand/src/lib.rs
+++ b/crates/hir_expand/src/lib.rs
@@ -475,7 +475,7 @@ fn original_range_opt(
475 let single = skip_trivia_token(node.value.first_token()?, Direction::Next)? 475 let single = skip_trivia_token(node.value.first_token()?, Direction::Next)?
476 == skip_trivia_token(node.value.last_token()?, Direction::Prev)?; 476 == skip_trivia_token(node.value.last_token()?, Direction::Prev)?;
477 477
478 Some(node.value.descendants().find_map(|it| { 478 node.value.descendants().find_map(|it| {
479 let first = skip_trivia_token(it.first_token()?, Direction::Next)?; 479 let first = skip_trivia_token(it.first_token()?, Direction::Next)?;
480 let first = ascend_call_token(db, &expansion, node.with_value(first))?; 480 let first = ascend_call_token(db, &expansion, node.with_value(first))?;
481 481
@@ -487,7 +487,7 @@ fn original_range_opt(
487 } 487 }
488 488
489 Some(first.with_value(first.value.text_range().cover(last.value.text_range()))) 489 Some(first.with_value(first.value.text_range().cover(last.value.text_range())))
490 })?) 490 })
491} 491}
492 492
493fn ascend_call_token( 493fn ascend_call_token(