diff --git a/crates/bevy_ecs/examples/events.rs b/crates/bevy_ecs/examples/events.rs index a90510526f002..af76d3e50c3c0 100644 --- a/crates/bevy_ecs/examples/events.rs +++ b/crates/bevy_ecs/examples/events.rs @@ -41,7 +41,6 @@ enum EventSystem { } // This is our event that we will send and receive in systems -#[derive(Debug)] struct MyEvent { pub message: String, pub random_value: f32, @@ -62,6 +61,9 @@ fn sending_system(mut event_writer: EventWriter) { // If an event is received it will be printed to the console fn receiving_system(mut event_reader: EventReader) { for my_event in event_reader.iter() { - println!(" Received: {:?}", *my_event); + println!( + " Received message {:?}, with random value of {}", + my_event.message, my_event.random_value + ); } }