ManualEventIterator does not implement Debug #9284
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
Bevy version
0.11
What you did
I wanted to reduce some incoming events into a single value. I expect left click events to only happen once (at least for now, I know it's probably not ideal) for the system and if it doesn't it'll just log the error via the try operator (?).
What went wrong
The compiler complained that ManualEventIterator does not implement Debug, which is required to generate the
at_most_one
error result.Additional information
You can work around this by adding
.collect_vec().into_iter()
between theflat_map
andat_most_one
calls.The text was updated successfully, but these errors were encountered: