changeset 15293 | 0f734fa371e1 |
parent 15292 | 3bb3fe1cf87c |
child 15385 | 6e3e5be8b2e2 |
15292:3bb3fe1cf87c | 15293:0f734fa371e1 |
---|---|
112 } |
112 } |
113 |
113 |
114 impl<T: Default + Copy> GearDataLookup<T> { |
114 impl<T: Default + Copy> GearDataLookup<T> { |
115 pub fn new() -> Self { |
115 pub fn new() -> Self { |
116 Self { |
116 Self { |
117 lookup: Vec::with_capacity(u16::max_value() as usize).into_boxed_slice() |
117 lookup: vec![LookupEntry::default(); u16::max_value() as usize].into_boxed_slice(), |
118 } |
118 } |
119 } |
119 } |
120 } |
120 } |
121 |
121 |
122 impl<T> GearDataLookup<T> { |
122 impl<T> GearDataLookup<T> { |