fix scenes-example unread field warning (#2179)

This should fix CI error: https://github.com/bevyengine/bevy/pull/2175/checks?check_run_id=2592736553
This commit is contained in:
Nathan Ward 2021-05-16 18:09:47 +00:00
parent 73f4a9d18f
commit e3435e5144

View file

@ -35,14 +35,14 @@ struct ComponentA {
struct ComponentB {
pub value: String,
#[reflect(ignore)]
pub time_since_startup: Duration,
pub _time_since_startup: Duration,
}
impl FromWorld for ComponentB {
fn from_world(world: &mut World) -> Self {
let time = world.get_resource::<Time>().unwrap();
ComponentB {
time_since_startup: time.time_since_startup(),
_time_since_startup: time.time_since_startup(),
value: "Default Value".to_string(),
}
}