derived Debug on EventReader (#6600)

# Objective
Fixes #6588 

## Solution

Added Debug to the derived traits of EventReader.
This commit is contained in:
Alessandro Salvatore Nicosia 2022-11-14 23:08:28 +00:00
parent b2090e3a8d
commit 13abb1fc16

View File

@ -184,7 +184,7 @@ impl<E: Event> DerefMut for EventSequence<E> {
}
/// Reads events of type `T` in order and tracks which events have already been read.
#[derive(SystemParam)]
#[derive(SystemParam, Debug)]
pub struct EventReader<'w, 's, E: Event> {
reader: Local<'s, ManualEventReader<E>>,
events: Res<'w, Events<E>>,