Cannot use parallel iterators with `changed` filter
- Lingua principale
- Rust
- Stelle
- 1.7k
- Fork
- 140
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The following program:
```rust
use legion::prelude::*;
fn main() {
let mut world = World::new();
>::query()
.filter(changed::())
.par_for_each_mut(&mut world, |_| ());
}
```
fails to compile with:
```
error[E0277]: the trait bound `legion_core::filter::ComponentChangedState<'_, legion_core::storage::ComponentStorage>: legion_core::iterator::FissileIterator` is not satisfied
--> src/main.rs:7:10
|
7 | .par_for_each_mut(&mut world, |_| ());
| ^^^^^^^^^^^^^^^^ the trait `legion_core::iterator::FissileIterator` is not implemented for `legion_core::filter::ComponentChangedState<'_, legion_core::storage::ComponentStorage>`
error: aborting due to previous error
```
This issue seems to have been introduced in c99326e6ced5a8d359574ced878eb97fddb9d227.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.