mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
5c3ae32ab1
# Objective
-
[`clippy::ref_as_ptr`](https://rust-lang.github.io/rust-clippy/master/index.html#/ref_as_ptr)
prevents you from directly casting references to pointers, requiring you
to use `std::ptr::from_ref` instead. This prevents you from accidentally
converting an immutable reference into a mutable pointer (`&x as *mut
T`).
- Follow up to #11818, now that our [`rust-version` is
1.77](
|
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |