style: Use more Box<[]> and Box<str> for quotes.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-14 03:59:39 +01:00
parent 16f627a18a
commit 03f3521216
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 50 additions and 31 deletions

View file

@ -4229,8 +4229,11 @@ fn static_assert() {
let ref gecko_quote_values = *self.gecko.mQuotes.mRawPtr;
longhands::quotes::computed_value::T(
gecko_quote_values.mQuotePairs.iter().map(|gecko_pair| {
(gecko_pair.first.to_string(), gecko_pair.second.to_string())
}).collect()
(
gecko_pair.first.to_string().into_boxed_str(),
gecko_pair.second.to_string().into_boxed_str(),
)
}).collect::<Vec<_>>().into_boxed_slice()
)
}
}