diff options
author | Aleksey Kladov <[email protected]> | 2020-08-12 15:32:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-12 15:35:29 +0100 |
commit | 208b7bd7ba687fb570feb1b89219f14c63712ce8 (patch) | |
tree | c39749d1b71b73b4017c2d0d848ebdc85e570c39 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | 98baa9b569b49162392ed4149dd435854fe941b8 (diff) |
Rename ra_prof -> profile
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index c10e15db8..ebdf05127 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -9,7 +9,6 @@ use ra_ide_db::{ | |||
9 | defs::{classify_name, classify_name_ref, Definition, NameClass, NameRefClass}, | 9 | defs::{classify_name, classify_name_ref, Definition, NameClass, NameRefClass}, |
10 | RootDatabase, | 10 | RootDatabase, |
11 | }; | 11 | }; |
12 | use ra_prof::profile; | ||
13 | use ra_syntax::{ | 12 | use ra_syntax::{ |
14 | ast::{self, HasFormatSpecifier}, | 13 | ast::{self, HasFormatSpecifier}, |
15 | AstNode, AstToken, Direction, NodeOrToken, SyntaxElement, | 14 | AstNode, AstToken, Direction, NodeOrToken, SyntaxElement, |
@@ -46,7 +45,7 @@ pub(crate) fn highlight( | |||
46 | range_to_highlight: Option<TextRange>, | 45 | range_to_highlight: Option<TextRange>, |
47 | syntactic_name_ref_highlighting: bool, | 46 | syntactic_name_ref_highlighting: bool, |
48 | ) -> Vec<HighlightedRange> { | 47 | ) -> Vec<HighlightedRange> { |
49 | let _p = profile("highlight"); | 48 | let _p = profile::span("highlight"); |
50 | let sema = Semantics::new(db); | 49 | let sema = Semantics::new(db); |
51 | 50 | ||
52 | // Determine the root based on the given range. | 51 | // Determine the root based on the given range. |