Fix unit test build.

This commit is contained in:
Emilio Cobos Álvarez 2018-09-18 12:01:31 +02:00
parent 60e28c61e5
commit c7fc80c5a3
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@
use cssparser::{Parser, ParserInput};
use servo_arc::Arc;
use style::custom_properties::{Name, SpecifiedValue, CustomPropertiesMap, CustomPropertiesBuilder};
use style::properties::DeclaredValue;
use style::properties::CustomDeclarationValue;
use test::{self, Bencher};
fn cascade(
@ -21,7 +21,7 @@ fn cascade(
let mut builder = CustomPropertiesBuilder::new(inherited);
for &(ref name, ref val) in &values {
builder.cascade(name, DeclaredValue::Value(val));
builder.cascade(name, &CustomDeclarationValue::Value(val.clone()));
}
builder.build()