1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-03 21:39:51 +02:00

Remove unnecessary type cast in C ffi example

This commit is contained in:
Nicole LeGare
2025-06-25 14:50:13 -07:00
parent f51f0dbb13
commit e3ccd63361

View File

@ -25,6 +25,6 @@ fn main() {
// remains valid. `print_card` doesn't store either pointer to use later // remains valid. `print_card` doesn't store either pointer to use later
// after it returns. // after it returns.
unsafe { unsafe {
print_card(&card as *const card); print_card(&card);
} }
} }