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

docs: document ptr type casting in CONVENTIONS.md #2197

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

SteveLauC
Copy link
Member

What does this PR do

Document that we prefer cast(), cast_mut() and cast_const() to cast pointer types over the as keyword in CONVENTIONS.md

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

CONVENTIONS.md Outdated Show resolved Hide resolved
CONVENTIONS.md Outdated Show resolved Hide resolved
Co-authored-by: Alan Somers <asomers@gmail.com>
@asomers asomers added this pull request to the merge queue Nov 23, 2023
Merged via the queue into nix-rust:master with commit c1147c6 Nov 23, 2023
34 checks passed
@SteveLauC SteveLauC deleted the ptr_cast branch November 23, 2023 21:30
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