diff --git a/src/lib.rs b/src/lib.rs index 86fa072..8890177 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,7 @@ #![feature(const_mut_refs)] #![feature(exclusive_range_pattern)] #![feature(c_variadic)] +#![feature(pointer_byte_offsets)] #![allow( clippy::borrow_interior_mutable_const, clippy::declare_interior_mutable_const, diff --git a/src/training/ui/menu.rs b/src/training/ui/menu.rs index 81c69fd..03ffc4c 100644 --- a/src/training/ui/menu.rs +++ b/src/training/ui/menu.rs @@ -583,7 +583,7 @@ pub unsafe fn draw(root_pane: &Pane) { // Left/Right tabs have keys if let Some(key) = key { - set_icon_text(icon_pane, &vec![**key]); + set_icon_text(icon_pane, &[**key]); } if *name == "CurrentTab" { @@ -604,7 +604,7 @@ pub unsafe fn draw(root_pane: &Pane) { .find_pane_by_name_recursive("set_txt_icon") .unwrap() .as_textbox(); - set_icon_text(icon_pane, &vec![*key.unwrap()]); + set_icon_text(icon_pane, &[*key.unwrap()]); key_help_pane .find_pane_by_name_recursive("set_txt_help") .unwrap() @@ -627,7 +627,7 @@ pub unsafe fn draw(root_pane: &Pane) { .find_pane_by_name_recursive("set_txt_icon") .unwrap() .as_textbox(); - set_icon_text(icon_pane, &vec![*key.unwrap()]); + set_icon_text(icon_pane, &[*key.unwrap()]); key_help_pane .find_pane_by_name_recursive("set_txt_help") .unwrap() @@ -645,7 +645,7 @@ pub unsafe fn draw(root_pane: &Pane) { // This is only displayed when you're in a multiple selection toggle menu w/ toggle.max > 1 let key = clear_toggle_key; let title = "Clear Toggle"; - set_icon_text(icon_pane.as_textbox(), &vec![*key.unwrap()]); + set_icon_text(icon_pane.as_textbox(), &[*key.unwrap()]); key_help_pane .find_pane_by_name_recursive("set_txt_help") .unwrap()