Commit 8821eda
authored
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 5530e8f commit 8821eda
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| |||
| 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