diff options
Diffstat (limited to 'crates/ra_ide/src/typing')
-rw-r--r-- | crates/ra_ide/src/typing/on_enter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/typing/on_enter.rs b/crates/ra_ide/src/typing/on_enter.rs index 50adae8bb..2faaa8ff0 100644 --- a/crates/ra_ide/src/typing/on_enter.rs +++ b/crates/ra_ide/src/typing/on_enter.rs | |||
@@ -77,11 +77,11 @@ fn node_indent(file: &SourceFile, token: &SyntaxToken) -> Option<SmolStr> { | |||
77 | mod tests { | 77 | mod tests { |
78 | use test_utils::assert_eq_text; | 78 | use test_utils::assert_eq_text; |
79 | 79 | ||
80 | use crate::mock_analysis::single_file_with_position; | 80 | use crate::mock_analysis::analysis_and_position; |
81 | use stdx::trim_indent; | 81 | use stdx::trim_indent; |
82 | 82 | ||
83 | fn apply_on_enter(before: &str) -> Option<String> { | 83 | fn apply_on_enter(before: &str) -> Option<String> { |
84 | let (analysis, position) = single_file_with_position(&before); | 84 | let (analysis, position) = analysis_and_position(&before); |
85 | let result = analysis.on_enter(position).unwrap()?; | 85 | let result = analysis.on_enter(position).unwrap()?; |
86 | 86 | ||
87 | let mut actual = analysis.file_text(position.file_id).unwrap().to_string(); | 87 | let mut actual = analysis.file_text(position.file_id).unwrap().to_string(); |