diff options
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 2dfbe6944..d51132f73 100644 --- a/crates/ra_ide_api/src/typing.rs +++ b/crates/ra_ide_api/src/typing.rs | |||
@@ -261,7 +261,7 @@ impl S { | |||
261 | 261 | ||
262 | fn type_char(char_typed: char, before: &str, after: &str) { | 262 | fn type_char(char_typed: char, before: &str, after: &str) { |
263 | let (actual, file_change) = do_type_char(char_typed, before) | 263 | let (actual, file_change) = do_type_char(char_typed, before) |
264 | .expect(&format!("typing `{}` did nothing", char_typed)); | 264 | .unwrap_or_else(|| panic!("typing `{}` did nothing", char_typed)); |
265 | 265 | ||
266 | if after.contains("<|>") { | 266 | if after.contains("<|>") { |
267 | let (offset, after) = extract_offset(after); | 267 | let (offset, after) = extract_offset(after); |