diff options
author | Aleksey Kladov <[email protected]> | 2018-11-28 18:03:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-28 18:03:30 +0000 |
commit | 70a7cb34ec18d30a680a73727e1d87a0a786dc44 (patch) | |
tree | e23d6bf49854c5ad42683accaf3f0c43488188a4 /crates/ra_hir/src/arena.rs | |
parent | 0cda188621b792265c957bdf4ac54af31cbc9947 (diff) |
switch to released id-arena
Diffstat (limited to 'crates/ra_hir/src/arena.rs')
-rw-r--r-- | crates/ra_hir/src/arena.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/arena.rs b/crates/ra_hir/src/arena.rs index 8d67ab1c9..d4f9d9cb9 100644 --- a/crates/ra_hir/src/arena.rs +++ b/crates/ra_hir/src/arena.rs | |||
@@ -46,10 +46,10 @@ pub(crate) struct ArenaBehavior<T> { | |||
46 | 46 | ||
47 | impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { | 47 | impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { |
48 | type Id = Id<T>; | 48 | type Id = Id<T>; |
49 | fn new_arena_id() -> usize { | 49 | fn new_arena_id() -> u32 { |
50 | 0 | 50 | 0 |
51 | } | 51 | } |
52 | fn new_id(_arena_id: usize, index: usize) -> Id<T> { | 52 | fn new_id(_arena_id: u32, index: usize) -> Id<T> { |
53 | Id { | 53 | Id { |
54 | idx: index as u32, | 54 | idx: index as u32, |
55 | _ty: PhantomData, | 55 | _ty: PhantomData, |
@@ -58,7 +58,7 @@ impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { | |||
58 | fn index(id: Id<T>) -> usize { | 58 | fn index(id: Id<T>) -> usize { |
59 | id.idx as usize | 59 | id.idx as usize |
60 | } | 60 | } |
61 | fn arena_id(_id: Id<T>) -> usize { | 61 | fn arena_id(_id: Id<T>) -> u32 { |
62 | 0 | 62 | 0 |
63 | } | 63 | } |
64 | } | 64 | } |