Skip to content

Convert directly from DOMString to Vec<u8> - #9967

Merged
bors-servo merged 1 commit into
servo:masterfrom
sauravsc:master
Mar 11, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
sauravsc:master

Conversation

@sauravsc

Copy link
Copy Markdown
Contributor

This change is Review on Reviewable

@highfive highfive assigned ghost Mar 11, 2016
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 11, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@Ms2ger

Ms2ger commented Mar 11, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+

Thank you!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 52d8372 has been approved by Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 52d8372 with merge 30624e4...

bors-servo pushed 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 -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Mar 11, 2016
Comment thread components/script/dom/blob.rs Outdated
// 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();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the type annotations at all for bytes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 11, 2016
@jdm

jdm commented Mar 11, 2016

Copy link
Copy Markdown
Member

@bors-servo: r=Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 663e42b has been approved by Ms2ger

@jdm jdm assigned Ms2ger and unassigned ghost Mar 11, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 663e42b with merge 00ab2e9...

bors-servo pushed 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
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants