Skip to content
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

Remove unnecessary clone from ServiceWorkerManager::prepare_activation #12999

Closed
jdm opened this issue Aug 23, 2016 · 1 comment
Closed

Remove unnecessary clone from ServiceWorkerManager::prepare_activation #12999

jdm opened this issue Aug 23, 2016 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented Aug 23, 2016

Right before returning from prepare_activation, we clone scope_url and pass the result to a function. This is redundant; we should be able to pass scope_url without cloning it.

Code: components/script/serviceworker_manager.rs

No need for automated tests; if it builds, it's good enough for a PR.

Note: This is reserved for the upcoming Taiwan Code Sprint; please do not work on it.

@jdm jdm added this to the Taiwan Code Sprint milestone Aug 23, 2016
@wdv4758h
Copy link
Contributor

@wdv4758h wdv4758h commented Aug 27, 2016

I'm trying :)

bors-servo added a commit that referenced this issue Aug 27, 2016
Remove unnecessary clone from ServiceWorkerManager::prepare_activation

remove unnecessary for `scope_url`

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12999
- [X] These changes do not require tests because it should works when it compiles

<!-- 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/13076)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Aug 27, 2016
Remove unnecessary clone from ServiceWorkerManager::prepare_activation

remove unnecessary for `scope_url`

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12999
- [X] These changes do not require tests because it should works when it compiles

<!-- 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/13076)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.