Skip to content

Commit e3435e5

Browse files
committed
fix scenes-example unread field warning (#2179)
This should fix CI error: https://github.com/bevyengine/bevy/pull/2175/checks?check_run_id=2592736553
1 parent 73f4a9d commit e3435e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/scene/scene.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ struct ComponentA {
3535
struct ComponentB {
3636
pub value: String,
3737
#[reflect(ignore)]
38-
pub time_since_startup: Duration,
38+
pub _time_since_startup: Duration,
3939
}
4040

4141
impl FromWorld for ComponentB {
4242
fn from_world(world: &mut World) -> Self {
4343
let time = world.get_resource::<Time>().unwrap();
4444
ComponentB {
45-
time_since_startup: time.time_since_startup(),
45+
_time_since_startup: time.time_since_startup(),
4646
value: "Default Value".to_string(),
4747
}
4848
}

0 commit comments

Comments
 (0)