-
Notifications
You must be signed in to change notification settings - Fork 150
impl std::io::Write for SmallVec #52
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
Conversation
this collides with the no_std pr because all other std modules are part of core but io is not. |
There was a problem hiding this 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.
#49 has landed now, so this should be rebased on top of it, and |
@@ -1436,4 +1458,21 @@ pub mod tests { | |||
assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]); | |||
drop(small_vec); | |||
} | |||
|
|||
#[cfg(feature = "std")] |
There was a problem hiding this comment.
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
.
@bors-servo r+ Yes, thanks! When merged with #53, this builds and passes tests both with and without the |
📌 Commit e96793e has been approved by |
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 -->
☀️ Test successful - status-travis |
This change is