Skip to content

Commit

Permalink
Fix panic in benches caused by missing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Maskery committed Dec 24, 2024
1 parent 48fe2a6 commit 4085ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/benches/bevy_ecs/param/dyn_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pub fn dyn_param(criterion: &mut Criterion) {
#[derive(Resource)]
struct R;

world.insert_resource(R);

let mut schedule = Schedule::default();
let system = (
DynParamBuilder::new::<Res<R>>(ParamBuilder),
Expand Down
2 changes: 2 additions & 0 deletions benches/benches/bevy_ecs/param/param_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub fn param_set(criterion: &mut Criterion) {
#[derive(Resource)]
struct R;

world.insert_resource(R);

let mut schedule = Schedule::default();
schedule.add_systems(
|_: ParamSet<(
Expand Down

0 comments on commit 4085ec2

Please sign in to comment.