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

Convert directly from DOMString to Vec<u8> #9967

Merged
merged 1 commit into from Mar 11, 2016
Merged

Conversation

@saurvs
Copy link
Contributor

saurvs commented Mar 11, 2016

This change is Review on Reviewable

@highfive
Copy link

highfive commented Mar 11, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 11, 2016

@bors-servo r+

Thank you!

@bors-servo
Copy link
Contributor

bors-servo commented Mar 11, 2016

📌 Commit 52d8372 has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Mar 11, 2016

Testing commit 52d8372 with merge 30624e4...

bors-servo added a commit that referenced this pull request Mar 11, 2016
Convert directly from DOMString to Vec<u8>

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

bors-servo commented Mar 11, 2016

💔 Test failed - linux-rel

@@ -124,8 +124,7 @@ impl Blob {
blobPropertyBag: &BlobBinding::BlobPropertyBag)
-> Fallible<Root<Blob>> {
// TODO: accept other blobParts types - ArrayBuffer or ArrayBufferView or Blob
// FIXME(ajeffrey): convert directly from a DOMString to a Vec<u8>
let bytes: Vec<u8> = String::from(blobParts).into_bytes();
let bytes: Vec<u8> = blobParts.into();

This comment has been minimized.

@KiChjang

KiChjang Mar 11, 2016

Member

Do we need the type annotations at all for bytes?

This comment has been minimized.

@saurvs

saurvs Mar 11, 2016

Author Contributor

I guess not. We don't need the variable either.

@jdm
Copy link
Member

jdm commented Mar 11, 2016

@bors-servo: r=Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Mar 11, 2016

📌 Commit 663e42b has been approved by Ms2ger

@jdm jdm assigned Ms2ger and unassigned wafflespeanut Mar 11, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Mar 11, 2016

Testing commit 663e42b with merge 00ab2e9...

bors-servo added a commit that referenced this pull request Mar 11, 2016
Convert directly from DOMString to Vec<u8>

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

bors-servo commented Mar 11, 2016

@bors-servo bors-servo merged commit 663e42b into servo:master Mar 11, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

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