File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub(crate) fn impl_buffer_map_layout(ast: DeriveInput) -> Result<TokenStream> {
30
30
) -> Result <usize , OperationError > {
31
31
#(
32
32
let #field_ident = world
33
- . get_entity( buffers. get( #map_key) . unwrap ( ) . id( ) )
33
+ . get_entity( buffers. get( #map_key) . or_broken ( ) ? . id( ) )
34
34
. or_broken( ) ?
35
35
. buffered_count:: <#field_type>( session) ?;
36
36
) *
@@ -49,7 +49,7 @@ pub(crate) fn impl_buffer_map_layout(ast: DeriveInput) -> Result<TokenStream> {
49
49
) -> OperationResult {
50
50
#(
51
51
world
52
- . get_entity_mut( buffers. get( #map_key) . unwrap ( ) . id( ) )
52
+ . get_entity_mut( buffers. get( #map_key) . or_broken ( ) ? . id( ) )
53
53
. or_broken( ) ?
54
54
. ensure_session:: <#field_type>( session) ?;
55
55
) *
@@ -68,7 +68,7 @@ pub(crate) fn impl_buffer_map_layout(ast: DeriveInput) -> Result<TokenStream> {
68
68
) -> Result <Self , OperationError > {
69
69
#(
70
70
let #field_ident = world
71
- . get_entity_mut( buffers. get( #map_key) . unwrap ( ) . id( ) )
71
+ . get_entity_mut( buffers. get( #map_key) . or_broken ( ) ? . id( ) )
72
72
. or_broken( ) ?
73
73
. pull_from_buffer:: <#field_type>( session) ?;
74
74
) *
You can’t perform that action at this time.
0 commit comments