Skip to content

Remove unnecessary type cast in C ffi example #2783

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
Jul 25, 2025

Conversation

randomPoison
Copy link
Collaborator

A &T can automatically coerce to a *const T, so the manual cast isn't necessary here.

@gribozavr gribozavr self-assigned this Jul 25, 2025
@gribozavr gribozavr self-requested a review July 25, 2025 09:10
@gribozavr gribozavr merged commit f374020 into main Jul 25, 2025
38 checks passed
@gribozavr gribozavr deleted the legare/print-card-remove-cast branch July 25, 2025 09:10
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