changeset 15288 | 0f734fa371e1 |
parent 15287 | 3bb3fe1cf87c |
child 15380 | 6e3e5be8b2e2 |
15287:3bb3fe1cf87c | 15288: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> { |