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

impl std::io::Write for SmallVec #52

Merged
merged 1 commit into from
Jun 22, 2017
Merged

impl std::io::Write for SmallVec #52

merged 1 commit into from
Jun 22, 2017

Conversation

chpio
Copy link
Contributor

@chpio chpio commented Jun 1, 2017

This change is Reviewable

@chpio
Copy link
Contributor Author

chpio commented Jun 1, 2017

this collides with the no_std pr because all other std modules are part of core but io is not.

Copy link
Collaborator

@mbrubeck mbrubeck left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks! Sorry for the delay. I plan to merge this, but I'll give #49 a chance to land first since it's been waiting even longer.

@mbrubeck
Copy link
Collaborator

#49 has landed now, so this should be rebased on top of it, and #[cfg(feature = "std")] should be added to all the new code.

@@ -1436,4 +1458,21 @@ pub mod tests {
assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]);
drop(small_vec);
}

#[cfg(feature = "std")]
Copy link
Contributor Author

@chpio chpio Jun 22, 2017

Choose a reason for hiding this comment

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

Is that the correct way of doing this? I guess it is if you want the tests to pass on core.

@mbrubeck
Copy link
Collaborator

@bors-servo r+

Yes, thanks! When merged with #53, this builds and passes tests both with and without the std feature.

@bors-servo
Copy link
Contributor

📌 Commit e96793e has been approved by mbrubeck

@bors-servo
Copy link
Contributor

⌛ Testing commit e96793e with merge 0627339...

bors-servo pushed a commit that referenced this pull request Jun 22, 2017
impl std::io::Write for SmallVec

<!-- 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-smallvec/52)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: mbrubeck
Pushing 0627339 to master...

@bors-servo bors-servo merged commit e96793e into servo:master Jun 22, 2017
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Jun 23, 2017
New features:

* `no_std` support (servo#49).
* `SmallVec<[u8; N]>` implements the `Write` trait (servo#52).
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Jun 28, 2017
New features:

* `no_std` support (servo#49).
* `SmallVec<[u8; N]>` implements the `Write` trait (servo#52).
* Add an `ExtendFromSlice` trait for both `Vec` and `SmallVec` (servo#54).
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