Skip to content

Commit e74f7a7

Browse files
committed
Fix the new nightly CI errors (#2811)
# Objective - CI is failing again - These failures result from rust-lang/rust#85200 ## Solution - Fix the errors which result from this by using the given fields - I also removed the now unused `Debug` impl. I suspect that we shouldn't use -D warnings for nightly CI - ideally we'd get a discord webhook message into some (non-#github) dedicated channel on warnings. But this does not implement that.
1 parent 51a5070 commit e74f7a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/bevy_ecs/examples/events.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ enum EventSystem {
4141
}
4242

4343
// This is our event that we will send and receive in systems
44-
#[derive(Debug)]
4544
struct MyEvent {
4645
pub message: String,
4746
pub random_value: f32,
@@ -62,6 +61,9 @@ fn sending_system(mut event_writer: EventWriter<MyEvent>) {
6261
// If an event is received it will be printed to the console
6362
fn receiving_system(mut event_reader: EventReader<MyEvent>) {
6463
for my_event in event_reader.iter() {
65-
println!(" Received: {:?}", *my_event);
64+
println!(
65+
" Received message {:?}, with random value of {}",
66+
my_event.message, my_event.random_value
67+
);
6668
}
6769
}

0 commit comments

Comments
 (0)