Commit 00f5b6a
Don't use
# Objective
- See rust-lang/rust#145457, we want to remove
unconditional `[T; 0]: Default` impl. That would be a breaking change
breaking `bevy_ecs` and (a test of) `bevy_camera`.
## Solution
- Replace `<[T; 0]>::default()` calls with `[]`
## Testing
- It compiles, the `<[T; 0]>::default()` is equivalent to `[]`, no
additional testing required[!Default; 0]: Default impl (#21660)1 parent 09995e3 commit 00f5b6a
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
| 634 | + | |
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments