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

Follow up to #61 #62

Merged
merged 2 commits into from Sep 23, 2022
Merged

Follow up to #61 #62

merged 2 commits into from Sep 23, 2022

Conversation

Kijewski
Copy link
Collaborator

  • CStr::from_bytes_with_nul_unchecked() is only const since rustc 1.59.0. Just don't use it const.
  • Moving the static mut variable into a getter function makes it more obvious that it cannot be changed after the initial assignment.

* [`CStr::from_bytes_with_nul_unchecked()`] is only `const` since rustc
  1.59.0. Just don't use it `const`.
* Moving the `static mut` variable into a getter function makes it more
  obvious that it cannot be changed after the initial assignment.

[`CStr::from_bytes_with_nul_unchecked()`]: https://doc.rust-lang.org/1.64.0/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
@Kijewski Kijewski mentioned this pull request Sep 23, 2022
@astraw astraw merged commit 14dfc44 into strawlab:main Sep 23, 2022
@astraw
Copy link
Member

astraw commented Sep 23, 2022

Looks good to me, so I merged this. Do you think it is worth a new release?

@Kijewski Kijewski deleted the issue-61-follow-up branch September 23, 2022 13:12
@Kijewski
Copy link
Collaborator Author

Thank you!

I'd say yes, because I might have broken the workflow of some Android developer who compiles the code on Debian old-stable for whatever reason. But I think we can wait a few hours if there are more comments in here or #61. I'll wait until midnight CEST, and do the release then, so the date in the changelog is still correct. :)

@Kijewski
Copy link
Collaborator Author

Published as 0.1.50.

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.

None yet

2 participants