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

Improve safety of Pattern API #17

Merged
merged 1 commit into from
Mar 15, 2022
Merged

Improve safety of Pattern API #17

merged 1 commit into from
Mar 15, 2022

Conversation

wezm
Copy link
Contributor

@wezm wezm commented Mar 15, 2022

  • Make the pat pointer private
    • Provide as_ptr/as_mut_ptr accessors to replace it
  • Mark functions that construct values from raw pointers as unsafe

Fixes #9

- Make the pat pointer private
  - Provide as_ptr/as_mut_ptr accessors to replace it
- Mark functions that construct values from raw pointers as unsafe
@wezm wezm merged commit ee9a701 into master Mar 15, 2022
@wezm wezm deleted the safety branch March 15, 2022 03:42
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.

Soundness issue
1 participant