From 31631cdc47618a1591b6520eab8c82b28ac13bee Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 02:24:30 +0800 Subject: [PATCH] Use specific negative assertion for gultin window --- ports/glutin/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 1d34713923a..9ce4f28bb83 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -138,7 +138,7 @@ impl HeadlessContext { gl::UNSIGNED_BYTE, width as i32, height as i32); - assert!(ret != 0); + assert_ne!(ret, 0); }; HeadlessContext {