From 7dee298003eea9659f7375464471e191a4c679dc Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 19 Jul 2016 16:00:05 +0200 Subject: [PATCH] Rewrite a line in geckolib's properties.mako.rs to fix the build on windows. --- ports/geckolib/properties.mako.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 7dddde7aa0e..0228c471e66 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -401,8 +401,7 @@ impl Clone for ${style_struct.gecko_struct_name} { } // FIXME(bholley): Make bindgen generate Debug for all types. -%if style_struct.gecko_ffi_name in "nsStyleBorder nsStyleDisplay nsStyleList nsStyleBackground "\ - "nsStyleFont nsStyleSVGReset".split(): +%if style_struct.gecko_ffi_name in ("nsStyle" + x for x in "Border Display List Background Font SVGReset".split()): impl Debug for ${style_struct.gecko_struct_name} { // FIXME(bholley): Generate this. fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {