Use specific negative assertion for cef window

This commit is contained in:
CYBAI 2018-01-26 02:24:21 +08:00
parent 6e4e318b24
commit a13a9f8f8d

View file

@ -564,7 +564,7 @@ pub fn app_wakeup() {
#[cfg(target_os="linux")]
pub fn init_window() {
unsafe {
assert!(XInitThreads() != 0);
assert_ne!(XInitThreads(), 0);
DISPLAY = XOpenDisplay(ptr::null()) as *mut c_void;
}
}