Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
leudz committed Jun 17, 2024
1 parent e9f43fc commit f2e8a04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/derive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,23 @@ struct MyLabel;
fn into_iter_rename() {
#[derive(Component)]
struct A;
#[derive(Component)]
struct B;
#[derive(Component)]
struct C;

#[derive(Borrow, IntoIter)]
#[shipyard(item_name = "OtherName")]
struct AView<'a> {
#[shipyard(item_field_name = "some_name")]
a: View<'a, A>,
#[shipyard(item_field_name = "some_other_name")]
vm_a: ViewMut<'a, A>,
vm_b: ViewMut<'a, B>,

#[shipyard(item_field_skip)]
_aa: View<'a, A>,
#[shipyard(item_field_skip)]
_vm_aa: ViewMut<'a, A>,
_vm_c: ViewMut<'a, C>,
}

let world = World::new();
Expand Down

0 comments on commit f2e8a04

Please sign in to comment.