diff options
author | Aleksey Kladov <[email protected]> | 2020-06-24 10:31:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-24 10:31:30 +0100 |
commit | c749fe223bf5a41709a4bc91d0f56dafc4201658 (patch) | |
tree | 0ed66d422a10a9f192a039565ac70b85dbdf80f8 /crates/ra_ide/src/typing | |
parent | c6795fb83a850dde6ac0b08decf108c0c3aa452a (diff) |
Remove duplication
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(); |