aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src/tree.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-08-12 15:22:05 +0100
committerAleksey Kladov <[email protected]>2020-08-12 15:22:05 +0100
commit98baa9b569b49162392ed4149dd435854fe941b8 (patch)
treeb8e203957dde45a0254c94e41bd7b3ffae0de257 /crates/ra_prof/src/tree.rs
parent6be5ab02008b442c85c201968b97f24f13c4692e (diff)
Rename ra_arena
Diffstat (limited to 'crates/ra_prof/src/tree.rs')
-rw-r--r--crates/ra_prof/src/tree.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_prof/src/tree.rs b/crates/ra_prof/src/tree.rs
index 9ea5b5db8..096f58511 100644
--- a/crates/ra_prof/src/tree.rs
+++ b/crates/ra_prof/src/tree.rs
@@ -1,7 +1,7 @@
1//! A simple tree implementation which tries to not allocate all over the place. 1//! A simple tree implementation which tries to not allocate all over the place.
2use std::ops; 2use std::ops;
3 3
4use ra_arena::Arena; 4use arena::Arena;
5 5
6#[derive(Default)] 6#[derive(Default)]
7pub struct Tree<T> { 7pub struct Tree<T> {
@@ -9,7 +9,7 @@ pub struct Tree<T> {
9 current_path: Vec<(Idx<T>, Option<Idx<T>>)>, 9 current_path: Vec<(Idx<T>, Option<Idx<T>>)>,
10} 10}
11 11
12pub type Idx<T> = ra_arena::Idx<Node<T>>; 12pub type Idx<T> = arena::Idx<Node<T>>;
13 13
14impl<T> Tree<T> { 14impl<T> Tree<T> {
15 pub fn start(&mut self) 15 pub fn start(&mut self)