From bafb7e42c673a01037d9979a9adca48a8b85d362 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Mon, 6 Nov 2017 23:08:33 +0200 Subject: [PATCH] Fix Rust 1.20 compatibility --- imgui-sys/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index d99c581..eb6fe1c 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -93,7 +93,7 @@ impl ImGuiCol { pub const ColumnActive: ImGuiCol = ImGuiCol::SeparatorActive; pub fn values() -> &'static [ImGuiCol] { use ImGuiCol::*; - &[ + static values: &'static [ImGuiCol] = &[ Text, TextDisabled, WindowBg, @@ -137,7 +137,8 @@ impl ImGuiCol { PlotHistogramHovered, TextSelectedBg, ModalWindowDarkening, - ] + ]; + values } } pub const ImGuiCol_COUNT: usize = 43;