Skip to content

Commit

Permalink
Fix Rust 1.20 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Nov 6, 2017
1 parent a7581e7 commit bafb7e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imgui-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -137,7 +137,8 @@ impl ImGuiCol {
PlotHistogramHovered,
TextSelectedBg,
ModalWindowDarkening,
]
];
values
}
}
pub const ImGuiCol_COUNT: usize = 43;
Expand Down

0 comments on commit bafb7e4

Please sign in to comment.