mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Remove now-redundant Arc inside PropertyDeclarationBlock.
This commit is contained in:
parent
acc38aa8c2
commit
ad3437b98a
6 changed files with 23 additions and 26 deletions
|
@ -45,8 +45,7 @@ fn property_declaration_block_should_serialize_correctly() {
|
|||
];
|
||||
|
||||
let block = PropertyDeclarationBlock {
|
||||
declarations: Arc::new(declarations),
|
||||
|
||||
declarations: declarations,
|
||||
important_count: 0,
|
||||
};
|
||||
|
||||
|
@ -63,8 +62,7 @@ mod shorthand_serialization {
|
|||
|
||||
pub fn shorthand_properties_to_string(properties: Vec<PropertyDeclaration>) -> String {
|
||||
let block = PropertyDeclarationBlock {
|
||||
declarations: Arc::new(properties.into_iter().map(|d| (d, Importance::Normal)).collect()),
|
||||
|
||||
declarations: properties.into_iter().map(|d| (d, Importance::Normal)).collect(),
|
||||
important_count: 0,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue