mirror of
https://github.com/bevyengine/bevy
synced 2024-09-21 06:52:04 +00:00
Fix the new nightly CI errors (#2811)
# Objective - CI is failing again - These failures result from https://github.com/rust-lang/rust/pull/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.
This commit is contained in:
parent
51a5070cd2
commit
e74f7a7335
1 changed files with 4 additions and 2 deletions
|
@ -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<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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue