From 363f466627db373fab23d1df94b7382223b8675a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Aug 2018 11:17:08 +0300 Subject: tone down on eq typed --- crates/libeditor/src/typing.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/libeditor/src') 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 { if contains_offset_nonstrict(expr_range, offset) && offset != expr_range.start() { return None; } + } else { + return None; } let offset = let_stmt.syntax().range().end(); let mut edit = EditBuilder::new(); -- cgit v1.2.3