diff options
author | Aleksey Kladov <[email protected]> | 2018-08-28 09:17:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-28 09:17:08 +0100 |
commit | 363f466627db373fab23d1df94b7382223b8675a (patch) | |
tree | f22c779cf90096968488c7951c803f053473f11d /crates/libeditor/src/typing.rs | |
parent | 2fa90e736b026ee979d9eb59178dc1f792228250 (diff) |
tone down on eq typed
Diffstat (limited to 'crates/libeditor/src/typing.rs')
-rw-r--r-- | crates/libeditor/src/typing.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/libeditor/src/typing.rs b/crates/libeditor/src/typing.rs index 48a8d6bb0..2cff96b34 100644 --- a/crates/libeditor/src/typing.rs +++ b/crates/libeditor/src/typing.rs | |||
@@ -66,6 +66,8 @@ pub fn on_eq_typed(file: &File, offset: TextUnit) -> Option<ActionResult> { | |||
66 | if contains_offset_nonstrict(expr_range, offset) && offset != expr_range.start() { | 66 | if contains_offset_nonstrict(expr_range, offset) && offset != expr_range.start() { |
67 | return None; | 67 | return None; |
68 | } | 68 | } |
69 | } else { | ||
70 | return None; | ||
69 | } | 71 | } |
70 | let offset = let_stmt.syntax().range().end(); | 72 | let offset = let_stmt.syntax().range().end(); |
71 | let mut edit = EditBuilder::new(); | 73 | let mut edit = EditBuilder::new(); |