Skip to content

Commit

Permalink
Fix the new nightly CI errors (#2811)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
DJMcNab committed Sep 12, 2021
1 parent 51a5070 commit e74f7a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bevy_ecs/examples/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -62,6 +61,9 @@ fn sending_system(mut event_writer: EventWriter<MyEvent>) {
// If an event is received it will be printed to the console
fn receiving_system(mut event_reader: EventReader<MyEvent>) {
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
);
}
}

0 comments on commit e74f7a7

Please sign in to comment.