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
@ -41,7 +41,6 @@ enum EventSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This is our event that we will send and receive in systems
|
// This is our event that we will send and receive in systems
|
||||||
#[derive(Debug)]
|
|
||||||
struct MyEvent {
|
struct MyEvent {
|
||||||
pub message: String,
|
pub message: String,
|
||||||
pub random_value: f32,
|
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
|
// If an event is received it will be printed to the console
|
||||||
fn receiving_system(mut event_reader: EventReader<MyEvent>) {
|
fn receiving_system(mut event_reader: EventReader<MyEvent>) {
|
||||||
for my_event in event_reader.iter() {
|
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 New Issue
Block a user