From a13a9f8f8d4ce926a6cab281ea6831d5f0f291a5 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 02:24:21 +0800 Subject: [PATCH] Use specific negative assertion for cef window --- ports/cef/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/cef/window.rs b/ports/cef/window.rs index 05b98e6dca9..de705adcf8d 100644 --- a/ports/cef/window.rs +++ b/ports/cef/window.rs @@ -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; } }