Skip to content

The generated layout tests should pass the borrow_as_ptr clippy lint #2204

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

Closed
dlrobertson opened this issue May 15, 2022 · 0 comments · Fixed by #2203
Closed

The generated layout tests should pass the borrow_as_ptr clippy lint #2204

dlrobertson opened this issue May 15, 2022 · 0 comments · Fixed by #2203

Comments

@dlrobertson
Copy link

The generated layout tests should use addr_of and pass the borrow_as_ptr clippy lint.

Steps to reproduce

  1. Generate bindings that contain the layout tests in your build
  2. run cargo clippy -v --tests -D warnings

Actual Results

Tests fail the borrow_as_ptr lint.

Expected Results

All the things pass clippy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant