mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
style: Use more Box<[]> and Box<str> for quotes.
This commit is contained in:
parent
16f627a18a
commit
03f3521216
5 changed files with 50 additions and 31 deletions
|
@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue