Skip to content

Commit

Permalink
Preallocate in deduplicate_property_declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 1, 2017
1 parent 77f53aa commit 5117b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/properties.mako.rs
Expand Up @@ -329,7 +329,7 @@ mod property_bit_field {
///
/// The input and output are in source order
fn deduplicate_property_declarations(block: &mut PropertyDeclarationBlock) {
let mut deduplicated = Vec::new();
let mut deduplicated = Vec::with_capacity(block.declarations.len());
let mut seen_normal = PropertyBitField::new();
let mut seen_important = PropertyBitField::new();
let mut seen_custom_normal = Vec::new();
Expand Down

0 comments on commit 5117b7e

Please sign in to comment.