Upgrade to bitflags 0.8

This commit is contained in:
Joonas Javanainen 2017-02-14 19:44:40 +02:00
parent 1e2914f70d
commit 4e9a3fa5bd
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
3 changed files with 2 additions and 25 deletions

View File

@ -12,6 +12,7 @@
### Changed
- Upgrade to bitflags 0.8
- Upgrade to glium 0.16
### Deprecated

View File

@ -12,7 +12,7 @@ build = "build.rs"
default = ["glium"]
[dependencies]
bitflags = "0.7"
bitflags = "0.8"
libc = "0.2"
[dependencies.glium]

View File

@ -191,14 +191,6 @@ impl ImGuiWindowFlags {
self - mask
}
}
#[inline]
pub fn set(&mut self, mask: ImGuiWindowFlags, value: bool) {
if value {
*self |= mask;
} else {
*self -= mask;
}
}
}
bitflags!(
@ -244,14 +236,6 @@ impl ImGuiInputTextFlags {
self - mask
}
}
#[inline]
pub fn set(&mut self, mask: ImGuiInputTextFlags, value: bool) {
if value {
*self |= mask;
} else {
*self -= mask;
}
}
}
@ -291,14 +275,6 @@ impl ImGuiTreeNodeFlags {
self - mask
}
}
#[inline]
pub fn set(&mut self, mask: ImGuiTreeNodeFlags, value: bool) {
if value {
*self |= mask;
} else {
*self -= mask;
}
}
}
pub type ImGuiTextEditCallback =