From 8fedc3a1888c188a516bcad7c5c629743377d6ca Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 01:40:39 +0800 Subject: [PATCH] Use specific negative assertion for gfx platform freetype font_list --- components/gfx/platform/freetype/font_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gfx/platform/freetype/font_list.rs b/components/gfx/platform/freetype/font_list.rs index c4f0cfe4fec..9b85db624d8 100644 --- a/components/gfx/platform/freetype/font_list.rs +++ b/components/gfx/platform/freetype/font_list.rs @@ -63,7 +63,7 @@ pub fn for_each_variation(family_name: &str, mut callback: F) let family_name_c = CString::new(family_name).unwrap(); let family_name = family_name_c.as_ptr(); let ok = FcPatternAddString(pattern, FC_FAMILY.as_ptr() as *mut c_char, family_name as *mut FcChar8); - assert!(ok != 0); + assert_ne!(ok, 0); let object_set = FcObjectSetCreate(); assert!(!object_set.is_null());