Skip to content

Commit

Permalink
Update to use Event trait
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed May 9, 2022
1 parent ba0fdbc commit 73c11fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ mod tests {

#[test]
fn ensure_reader_readonly() {
fn read_for<E: Resource>() {
fn read_for<E: Event>() {
let mut world = World::new();
world.init_resource::<Events<E>>();
let mut state = SystemState::<EventReader<E>>::new(&mut world);
Expand Down

0 comments on commit 73c11fc

Please sign in to comment.