You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use <[T]>::array_windows for exact size windows (#24146)
# Objective
- Reduce panicking code and bounds checks.
## Solution
- Replace `<[T]>::windows` with `<[T]>::array_windows` when the window
size is constant.
- Update MSRV in affected crates (and fix the new warnings).
## Testing
- Ran `cargo test -p bevy_mesh -p bevy_gizmos -p bevy_math -p
bevy_input_focus`
## MSRV
The main `bevy` crate has a MSRV of 1.95; I've increased the MSRV to
1.94 (when `array_windows` was stabilised) for `bevy_math` and
`bevy_input_focus` in this PR. If it's too early to increase the MSRV, I
can drop the changes to these crates in this PR or convert this PR to
draft.
0 commit comments