aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2018-01-26 02:24:30 +0800
committerCYBAI <cyb.ai.815@gmail.com>2018-01-26 02:24:30 +0800
commit31631cdc47618a1591b6520eab8c82b28ac13bee (patch)
tree751c2ddbd73c98982527a083da2e7bcc3416540f
parenta13a9f8f8d4ce926a6cab281ea6831d5f0f291a5 (diff)
downloadservo-31631cdc47618a1591b6520eab8c82b28ac13bee.tar.gz
servo-31631cdc47618a1591b6520eab8c82b28ac13bee.zip
Use specific negative assertion for gultin window
-rw-r--r--ports/glutin/window.rs2
1 files changed, 1 insertions, 1 deletions
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 {