Pass some 48-bytes closures by references instead of by value.

This commit is contained in:
Simon Sapin 2017-06-22 02:01:08 +02:00
parent ed5485ed18
commit 837cb6ddb2
3 changed files with 8 additions and 8 deletions

View file

@ -333,7 +333,7 @@
let quirks_mode = context.quirks_mode;
::properties::substitute_variables_${property.ident}(
&declared_value, &custom_props,
|value| {
&mut |value| {
if let Some(ref mut cascade_info) = *cascade_info {
cascade_info.on_cascade_property(&declaration,
&value);