ah, that's how you init an Option<String> array...

This commit is contained in:
bunnie 2022-01-15 17:04:40 +08:00
parent b77b38552d
commit d1eff9e052

View file

@ -84,7 +84,7 @@ impl InputTracker {
insertion: 0, insertion: 0,
last_height: 0, last_height: 0,
was_grown: false, was_grown: false,
pred_options: [None, None, None, None], // this has to be manually inferred because String doesn't implement "copy" and can't be None-init automatically pred_options: Default::default(),
} }
} }
pub fn set_gam_token(&mut self, token: [u32; 4]) { pub fn set_gam_token(&mut self, token: [u32; 4]) {