bevy/crates/bevy_render/src/mesh
BD103 5c3ae32ab1
Enable clippy::ref_as_ptr (#12918)
# 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](11817f4ba4/Cargo.toml (L14)).

## Solution

- Enable lint and fix all warnings.
2024-04-10 20:16:48 +00:00
..
mesh Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00
primitives Meshing for Triangle3d primitive (#12686) 2024-04-08 23:00:04 +00:00
mod.rs Enable clippy::ref_as_ptr (#12918) 2024-04-10 20:16:48 +00:00
morph.rs Reflect default in some types on bevy_render (#12580) 2024-03-19 22:50:17 +00:00