diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-15 18:18:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-15 18:18:01 +0000 |
commit | ab46f8abf195a78c018d8b23896eb920d16b028b (patch) | |
tree | b82a2973067dffa988e253c4038cdf0e9b0a6963 /crates/ra_ide_api/src/syntax_highlighting.rs | |
parent | 6fba078ab693ec79e887b64e92a7ed3a21e29728 (diff) | |
parent | 8338acfd3a9a9e5ab099abd5f01b5c43245daf0a (diff) |
Merge #558
558: kill last cancelables r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide_api/src/syntax_highlighting.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/syntax_highlighting.rs b/crates/ra_ide_api/src/syntax_highlighting.rs index 480b78dce..a4d3ad005 100644 --- a/crates/ra_ide_api/src/syntax_highlighting.rs +++ b/crates/ra_ide_api/src/syntax_highlighting.rs | |||
@@ -2,11 +2,11 @@ use ra_syntax::{ast, AstNode,}; | |||
2 | use ra_db::SyntaxDatabase; | 2 | use ra_db::SyntaxDatabase; |
3 | 3 | ||
4 | use crate::{ | 4 | use crate::{ |
5 | FileId, Cancelable, HighlightedRange, | 5 | FileId, HighlightedRange, |
6 | db::RootDatabase, | 6 | db::RootDatabase, |
7 | }; | 7 | }; |
8 | 8 | ||
9 | pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> { | 9 | pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRange> { |
10 | let source_file = db.source_file(file_id); | 10 | let source_file = db.source_file(file_id); |
11 | let mut res = ra_ide_api_light::highlight(source_file.syntax()); | 11 | let mut res = ra_ide_api_light::highlight(source_file.syntax()); |
12 | for macro_call in source_file | 12 | for macro_call in source_file |
@@ -28,7 +28,7 @@ pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<Hi | |||
28 | res.extend(mapped_ranges); | 28 | res.extend(mapped_ranges); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | Ok(res) | 31 | res |
32 | } | 32 | } |
33 | 33 | ||
34 | #[cfg(test)] | 34 | #[cfg(test)] |