Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDerive more ToCss impls #17215
Derive more ToCss impls #17215
Conversation
highfive
commented
Jun 7, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 7, 2017
| @@ -38,6 +38,20 @@ impl<'a, T> ToCss for &'a T where T: ToCss + ?Sized { | |||
| } | |||
| } | |||
|
|
|||
| impl ToCss for str { | |||
This comment has been minimized.
This comment has been minimized.
emilio
Jun 7, 2017
Member
Please add a comment in the ToCss definition pointing to this, since it may be easy to misuse and end up serialising other stuff in a way it was not intended to.
| match *self { | ||
| computed_value::T::Keyword(ref keyword) => keyword.to_css(dest), | ||
| computed_value::T::None => dest.write_str("none"), | ||
| computed_value::T::String(ref string) => write!(dest, "\"{}\"", string), |
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r=emilio |
|
|
Derive more ToCss impls <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17215) <!-- Reviewable:end -->
|
|
|
@bors-servo r=emilio |
|
|
Derive more ToCss impls <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17215) <!-- Reviewable:end -->
|
|
|
@bors-servo retry #17230 |
|
|
|
|
|
@bors-servo retry #17230 |
Derive more ToCss impls <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17215) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
nox commentedJun 7, 2017
•
edited by larsbergstrom
This change is