Fix Rust 1.20 compatibility

This commit is contained in:
Joonas Javanainen 2017-11-06 23:08:33 +02:00
parent a7581e73c0
commit bafb7e42c6
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -93,7 +93,7 @@ impl ImGuiCol {
pub const ColumnActive: ImGuiCol = ImGuiCol::SeparatorActive; pub const ColumnActive: ImGuiCol = ImGuiCol::SeparatorActive;
pub fn values() -> &'static [ImGuiCol] { pub fn values() -> &'static [ImGuiCol] {
use ImGuiCol::*; use ImGuiCol::*;
&[ static values: &'static [ImGuiCol] = &[
Text, Text,
TextDisabled, TextDisabled,
WindowBg, WindowBg,
@ -137,7 +137,8 @@ impl ImGuiCol {
PlotHistogramHovered, PlotHistogramHovered,
TextSelectedBg, TextSelectedBg,
ModalWindowDarkening, ModalWindowDarkening,
] ];
values
} }
} }
pub const ImGuiCol_COUNT: usize = 43; pub const ImGuiCol_COUNT: usize = 43;