diff options
Diffstat (limited to 'crates/ra_ide/src/expand.rs')
-rw-r--r-- | crates/ra_ide/src/expand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/expand.rs b/crates/ra_ide/src/expand.rs index 327393dbb..258478bc1 100644 --- a/crates/ra_ide/src/expand.rs +++ b/crates/ra_ide/src/expand.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! Utilities to work with files, produced by macros. | 1 | //! Utilities to work with files, produced by macros. |
2 | use std::iter::successors; | 2 | use std::iter::successors; |
3 | 3 | ||
4 | use hir::{ExpansionOrigin, InFile}; | 4 | use hir::{InFile, Origin}; |
5 | use ra_db::FileId; | 5 | use ra_db::FileId; |
6 | use ra_syntax::{ast, AstNode, SyntaxNode, SyntaxToken, TextRange}; | 6 | use ra_syntax::{ast, AstNode, SyntaxNode, SyntaxToken, TextRange}; |
7 | 7 | ||
@@ -45,7 +45,7 @@ pub(crate) fn original_range_by_kind( | |||
45 | 45 | ||
46 | if first.file_id != last.file_id | 46 | if first.file_id != last.file_id |
47 | || first_origin != last_origin | 47 | || first_origin != last_origin |
48 | || (kind == OriginalRangeKind::CallToken && first_origin != ExpansionOrigin::Call) | 48 | || (kind == OriginalRangeKind::CallToken && first_origin != Origin::Call) |
49 | { | 49 | { |
50 | return None; | 50 | return None; |
51 | } | 51 | } |