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

Update to bytes 1.0 #4

Merged
merged 2 commits into from
Dec 29, 2020
Merged

Update to bytes 1.0 #4

merged 2 commits into from
Dec 29, 2020

Conversation

nickelc
Copy link
Contributor

@nickelc nickelc commented Dec 23, 2020

No description provided.

for x in data.iter_mut() {
*x.as_mut_ptr() = 0;
for i in 0..data.len() {
data.write_byte(i, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Or maybe instead of that we can do something with bytes::buf::UninitSlice here without having to initialize everything first?

Copy link
Contributor

@sdroege sdroege left a comment

Choose a reason for hiding this comment

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

Seems good to me otherwise, that can also be done in a separate PR IMHO.

Cargo.toml Outdated
@@ -12,4 +12,4 @@ documentation = "https://docs.rs/input_buffer/0.3.1"
version = "0.3.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIU this changes the API so the next release should be 0.4.0

@gakonst
Copy link

gakonst commented Dec 29, 2020

@application-developer-DA is there anything blocking this PR from being merged? There's a few upstream crates depending on it so would be great if we could get it in / release. Thank you!

@daniel-abramov daniel-abramov merged commit e04d167 into snapview:master Dec 29, 2020
@nickelc nickelc deleted the bytes branch December 29, 2020 20:55
@gakonst
Copy link

gakonst commented Dec 30, 2020

Thank you @application-developer-DA. Do you also mind releasing 0.4.0 to crates?

@daniel-abramov
Copy link
Member

Sure.

@agalakhov , could you please publish it? (or give me permissions to do so, I'm not an owner of the crate ;)

@gakonst
Copy link

gakonst commented Jan 5, 2021

Bump @agalakhov it'd be great if you could do the release / give DA perms! Thank you again.

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.

4 participants