diff options
-rw-r--r-- | ports/geckolib/properties.mako.rs | 3 |
1 files changed, 1 insertions, 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 { |