aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-07-25 18:22:41 +0100
committerKirill Bulatov <[email protected]>2019-07-25 18:22:41 +0100
commitdbbb0beb3ec9f11a635f43e60f3b3a42ba61338a (patch)
tree47edb8102902df9e291d5d0c8274ef1388546d03 /crates/ra_cli
parenta8e37ddbc8fa666105a5eca8e2dc9f261d8934e8 (diff)
Make Analysis api cancellable
Diffstat (limited to 'crates/ra_cli')
-rw-r--r--crates/ra_cli/src/analysis_bench.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_cli/src/analysis_bench.rs b/crates/ra_cli/src/analysis_bench.rs
index 639ac763e..5e9d0c16d 100644
--- a/crates/ra_cli/src/analysis_bench.rs
+++ b/crates/ra_cli/src/analysis_bench.rs
@@ -55,7 +55,7 @@ pub(crate) fn run(verbose: bool, path: &Path, op: Op) -> Result<()> {
55 Op::Complete { line, column, .. } => { 55 Op::Complete { line, column, .. } => {
56 let offset = host 56 let offset = host
57 .analysis() 57 .analysis()
58 .file_line_index(file_id) 58 .file_line_index(file_id)?
59 .offset(LineCol { line, col_utf16: column }); 59 .offset(LineCol { line, col_utf16: column });
60 let file_postion = FilePosition { file_id, offset }; 60 let file_postion = FilePosition { file_id, offset };
61 61