From 66a376944660c8bd4e39627d11508a8017887a07 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Tue, 3 May 2016 16:24:07 +1000 Subject: [PATCH] Support skip_longhands="*" on geckolib struct trait definitions. --- ports/geckolib/properties.mako.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 683eab3c0d6..0d941b1751e 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -332,7 +332,8 @@ impl Debug for ${style_struct.gecko_ffi_name} { <%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')"> <% - longhands = [x for x in style_struct.longhands if not x.name in skip_longhands.split()] + longhands = [x for x in style_struct.longhands + if not (skip_longhands == "*" or x.name in skip_longhands.split())] # # Make a list of types we can't auto-generate.