diff options
author | Aleksey Kladov <[email protected]> | 2019-07-20 14:52:11 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-20 14:52:11 +0100 |
commit | f6bcc2d7459a3e10090391a6f9b9a2789e9cab55 (patch) | |
tree | 742f34cb6e1e38f1e009c23405fc2d3c6a232f72 /crates/ra_ide_api/src/typing.rs | |
parent | 6b352ffeb346eb7c7e46e00e790c2f395907eaa6 (diff) |
align SyntaxText API with upstream
Diffstat (limited to 'crates/ra_ide_api/src/typing.rs')
-rw-r--r-- | crates/ra_ide_api/src/typing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/typing.rs b/crates/ra_ide_api/src/typing.rs index 1747a529e..5a1cbcc49 100644 --- a/crates/ra_ide_api/src/typing.rs +++ b/crates/ra_ide_api/src/typing.rs | |||
@@ -75,7 +75,7 @@ pub fn on_eq_typed(file: &SourceFile, eq_offset: TextUnit) -> Option<TextEdit> { | |||
75 | if expr_range.contains(eq_offset) && eq_offset != expr_range.start() { | 75 | if expr_range.contains(eq_offset) && eq_offset != expr_range.start() { |
76 | return None; | 76 | return None; |
77 | } | 77 | } |
78 | if file.syntax().text().slice(eq_offset..expr_range.start()).contains('\n') { | 78 | if file.syntax().text().slice(eq_offset..expr_range.start()).contains_char('\n') { |
79 | return None; | 79 | return None; |
80 | } | 80 | } |
81 | } else { | 81 | } else { |