Skip to content

Expose serializer::serialize_name. #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2018
Merged

Expose serializer::serialize_name. #221

merged 2 commits into from
Jun 5, 2018

Conversation

emilio
Copy link
Member

@emilio emilio commented Jun 5, 2018

I want to use it to remove some stupid allocations in Servo, which effectively
do:

serialize_identifier(format!("--{}", custom_prop_name));

And could do instead:

write_str("--");
serialize_name(custom_prop_name);


This change is Reviewable

@emilio emilio requested review from nox and SimonSapin June 5, 2018 09:39
emilio added 2 commits June 5, 2018 11:41
I want to use it to remove some stupid allocations in Servo, which effectively
do:

  serialize_identifier(format!("--{}", custom_prop_name));

And could do instead:

  write_str("--");
  serialize_name(custom_prop_name);
@SimonSapin
Copy link
Member

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit b4d5e05 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit b4d5e05 with merge 47f939c...

bors-servo pushed a commit that referenced this pull request Jun 5, 2018
Expose serializer::serialize_name.

I want to use it to remove some stupid allocations in Servo, which effectively
do:

  serialize_identifier(format!("--{}", custom_prop_name));

And could do instead:

  write_str("--");
  serialize_name(custom_prop_name);

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/221)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing 47f939c to master...

@bors-servo bors-servo merged commit b4d5e05 into master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants