Make predefined_type use kwargs.

This commit is contained in:
Bobby Holley 2016-04-19 17:05:59 -07:00
parent a4ee11da0a
commit 456b05e9cf

View file

@ -16,8 +16,8 @@
</%call> </%call>
</%def> </%def>
<%def name="predefined_type(name, type, initial_value, parse_method='parse', products='gecko servo')"> <%def name="predefined_type(name, type, initial_value, parse_method='parse', **kwargs)">
<%self:longhand name="${name}" products="${products}"> <%call expr="longhand(name, **kwargs)">
#[allow(unused_imports)] #[allow(unused_imports)]
use app_units::Au; use app_units::Au;
pub type SpecifiedValue = specified::${type}; pub type SpecifiedValue = specified::${type};
@ -29,7 +29,7 @@
-> Result<SpecifiedValue, ()> { -> Result<SpecifiedValue, ()> {
specified::${type}::${parse_method}(input) specified::${type}::${parse_method}(input)
} }
</%self:longhand> </%call>
</%def> </%def>
<%def name="raw_longhand(*args, **kwargs)"> <%def name="raw_longhand(*args, **kwargs)">