diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-30 17:39:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-30 17:39:18 +0000 |
commit | eee55d4663084a01ce80f5ee201d8e1e345417cd (patch) | |
tree | 7fc1497065d00cfba1cd00523ed9545886745da1 /crates/ra_ide_api/src/typing.rs | |
parent | d929f9c49bceb3b7c32ea45c5e55c42f168bbf34 (diff) | |
parent | b441b4e8effeaf4532fd2e45c4d864480857c49e (diff) |
Merge #2129
2129: Some clippy fixes r=kjeremy a=kjeremy
Co-authored-by: kjeremy <[email protected]>
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); |