diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-25 18:32:17 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-25 18:32:17 +0100 |
commit | ceb16591deef2190daaf5eb9a6480f20dc5d169c (patch) | |
tree | 47edb8102902df9e291d5d0c8274ef1388546d03 /crates/ra_ide_api/src/references.rs | |
parent | a8e37ddbc8fa666105a5eca8e2dc9f261d8934e8 (diff) | |
parent | dbbb0beb3ec9f11a635f43e60f3b3a42ba61338a (diff) |
Merge #1591
1591: Make Analysis api cancellable r=matklad a=SomeoneToIgnore
Based on the discussion from here: https://github.com/rust-analyzer/rust-analyzer/pull/1549#discussion_r305593236
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/references.rs')
-rw-r--r-- | crates/ra_ide_api/src/references.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/references.rs b/crates/ra_ide_api/src/references.rs index 5c74d3e36..89984e642 100644 --- a/crates/ra_ide_api/src/references.rs +++ b/crates/ra_ide_api/src/references.rs | |||
@@ -372,7 +372,8 @@ mod tests { | |||
372 | } | 372 | } |
373 | } | 373 | } |
374 | } | 374 | } |
375 | let result = text_edit_builder.finish().apply(&*analysis.file_text(file_id.unwrap())); | 375 | let result = |
376 | text_edit_builder.finish().apply(&*analysis.file_text(file_id.unwrap()).unwrap()); | ||
376 | assert_eq_text!(expected, &*result); | 377 | assert_eq_text!(expected, &*result); |
377 | } | 378 | } |
378 | } | 379 | } |