mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use specific negative assertion for cef window
This commit is contained in:
parent
6e4e318b24
commit
a13a9f8f8d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue