From 70a7cb34ec18d30a680a73727e1d87a0a786dc44 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 28 Nov 2018 21:03:30 +0300 Subject: switch to released id-arena --- crates/ra_hir/src/arena.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src') 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 { impl id_arena::ArenaBehavior for ArenaBehavior { type Id = Id; - fn new_arena_id() -> usize { + fn new_arena_id() -> u32 { 0 } - fn new_id(_arena_id: usize, index: usize) -> Id { + fn new_id(_arena_id: u32, index: usize) -> Id { Id { idx: index as u32, _ty: PhantomData, @@ -58,7 +58,7 @@ impl id_arena::ArenaBehavior for ArenaBehavior { fn index(id: Id) -> usize { id.idx as usize } - fn arena_id(_id: Id) -> usize { + fn arena_id(_id: Id) -> u32 { 0 } } -- cgit v1.2.3