Skip to content

Fix clippy lint warnings from nightly version of clippy. #187

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

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

SingingTree
Copy link
Contributor

This fixes clippy lints that show up in nightly that I'd overlooked in #185

This is largely adding safety sections to the unsafe pub functions on the capi. These are largely similar in that the functions are dereferencing raw pointers, so the callers need to provide sane pointers.

There is one additional case of using map instead of and_then on an optional to avoid rewrapping a Some.

@kinetiknz kinetiknz changed the title Fix clippy lint warnigns from nightly version of clippy. Fix clippy lint warnings from nightly version of clippy. Nov 4, 2019
@kinetiknz kinetiknz merged commit 63d4744 into mozilla:master Nov 4, 2019
@kinetiknz
Copy link
Collaborator

Thanks!

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.

2 participants