Skip to content

Commit 5a93457

Browse files
committed
revert
1 parent 35e5daa commit 5a93457

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ide/src/typing.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ fn on_arrow_typed(file: &SourceFile, offset: TextSize) -> Option<TextEdit> {
227227
if file_text.char_at(after_arrow) != Some('{') {
228228
return None;
229229
}
230-
find_node_at_offset::<ast::RetType>(file.syntax(), offset)?;
230+
if find_node_at_offset::<ast::RetType>(file.syntax(), offset).is_none() {
231+
return None;
232+
}
231233

232234
Some(TextEdit::insert(after_arrow, " ".to_string()))
233235
}

0 commit comments

Comments
 (0)