diff options
Diffstat (limited to 'crates/ra_hir/src')
-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 | } |