diff options
Diffstat (limited to 'components/style/attr.rs')
-rw-r--r-- | components/style/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/attr.rs b/components/style/attr.rs index 04d37a37a70..1989816329d 100644 --- a/components/style/attr.rs +++ b/components/style/attr.rs @@ -160,8 +160,8 @@ impl AttrValue { pub fn from_comma_separated_tokenlist(tokens: String) -> AttrValue { let atoms = split_commas(&tokens).map(Atom::from) .fold(vec![], |mut acc, atom| { - if !acc.contains(&atom) { acc.push(atom) } - acc + if !acc.contains(&atom) { acc.push(atom) } + acc }); AttrValue::TokenList(tokens, atoms) } |