diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-14 16:06:30 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-14 16:06:30 +0000 |
commit | f88f3d688507508ae9528101e13e1c62902467a3 (patch) | |
tree | 325af14ad9cd20312fb6166f1c06f3cb39684fe3 /crates/profile | |
parent | 540edee3cd11d45a03abc072bb9b6f01b59bcb25 (diff) | |
parent | 4c4e54ac8a9782439744fe15aa31a3bedab92b74 (diff) |
Merge #7271
7271: prepare to publish el libro de arena r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/profile')
-rw-r--r-- | crates/profile/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/profile/src/tree.rs | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/crates/profile/Cargo.toml b/crates/profile/Cargo.toml index 4951f1835..096233a09 100644 --- a/crates/profile/Cargo.toml +++ b/crates/profile/Cargo.toml | |||
@@ -13,8 +13,7 @@ doctest = false | |||
13 | once_cell = "1.3.1" | 13 | once_cell = "1.3.1" |
14 | cfg-if = "1" | 14 | cfg-if = "1" |
15 | libc = "0.2.73" | 15 | libc = "0.2.73" |
16 | 16 | la-arena = "0.1.0" | |
17 | arena = { path = "../arena", version = "0.0.0" } | ||
18 | 17 | ||
19 | [target.'cfg(target_os = "linux")'.dependencies] | 18 | [target.'cfg(target_os = "linux")'.dependencies] |
20 | perf-event = "0.4" | 19 | perf-event = "0.4" |
diff --git a/crates/profile/src/tree.rs b/crates/profile/src/tree.rs index 3fac1f36c..62f0c30b5 100644 --- a/crates/profile/src/tree.rs +++ b/crates/profile/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. |
2 | use std::ops; | 2 | use std::ops; |
3 | 3 | ||
4 | use arena::Arena; | 4 | use la_arena::Arena; |
5 | 5 | ||
6 | #[derive(Default)] | 6 | #[derive(Default)] |
7 | pub(crate) struct Tree<T> { | 7 | pub(crate) struct Tree<T> { |
@@ -9,7 +9,7 @@ pub(crate) 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 | ||
12 | pub(crate) type Idx<T> = arena::Idx<Node<T>>; | 12 | pub(crate) type Idx<T> = la_arena::Idx<Node<T>>; |
13 | 13 | ||
14 | impl<T> Tree<T> { | 14 | impl<T> Tree<T> { |
15 | pub(crate) fn start(&mut self) | 15 | pub(crate) fn start(&mut self) |