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 upImplement iterable for headers #12998
Conversation
highfive
commented
Aug 23, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Aug 23, 2016
|
r? @jdm |
|
|
||
| fn get_key_at_index(&self, n: u32) -> ByteString { | ||
| let sorted_header_vec = self.sort_header_list(); | ||
| let key = sorted_header_vec[n as usize].1.clone(); |
This comment has been minimized.
This comment has been minimized.
jdm
Aug 24, 2016
Member
I suspect this should be .0 instead... do any test results change when that's corrected?
This comment has been minimized.
This comment has been minimized.
jeenalee
Aug 24, 2016
Author
Contributor
Oh strange! Yes you are correct. I had it as 0, but I don't know what happened there... I'll fix that right now.
|
There are a bunch of unrelated changes in the commit that implements Iterable; it would be best to remove those (at least into separate commits that can be removed from this PR before merging). |
|
#12819 should be merging within the next couple hours, so feel free to put this off until you can rebase your changes against master. |
|
Ok. I must have made mistakes with git. It wasn't my intention to group all the changes in the headers with the iterable implementation commit. I'll wait until the #12819 is merged into master. |
|
@jdm Rebased! |
|
@bors-servo: r+ |
|
|
Implement iterable for headers <!-- Please describe your changes on the following line: --> These patches make Headers iterable based on #12819. The expected wpt results are updated as well. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because web platform tests for Headers already exist. Expected test results are updated with this PR. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/12998) <!-- Reviewable:end -->
|
|
jeenalee commentedAug 23, 2016
•
edited
These patches make Headers iterable based on #12819.
The expected wpt results are updated as well.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is