Skip to content

Commit

Permalink
remove bundle impl for ()
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Jul 29, 2021
1 parent cc2eeec commit e3ece27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ macro_rules! tuple_impl {
}
}

all_tuples!(tuple_impl, 0, 15, C);
all_tuples!(tuple_impl, 1, 15, C);

#[derive(Debug, Clone, Copy)]
pub struct BundleId(usize);
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/schedule/stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ mod tests {
world.insert_resource(0_usize);
let mut stage = SystemStage::single(query_count_system.system());

let entity = world.spawn().insert_bundle(()).id();
let entity = world.spawn().insert_bundle(((),)).id();
stage.run(&mut world);
assert_eq!(*world.get_resource::<usize>().unwrap(), 1);

Expand All @@ -2022,7 +2022,7 @@ mod tests {
let mut stage = SystemStage::parallel();
stage.add_system(query_count_system.system());

let entity = world.spawn().insert_bundle(()).id();
let entity = world.spawn().insert_bundle(((),)).id();
stage.run(&mut world);
assert_eq!(*world.get_resource::<usize>().unwrap(), 1);

Expand Down

0 comments on commit e3ece27

Please sign in to comment.