File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ fn setup(world: &mut World) {
75
75
let value = world. get :: < MyComponent > ( entity) . unwrap ( ) . 0 ;
76
76
println ! (
77
77
"{component_id:?} added to {entity:?} with value {value:?}{}" ,
78
- caller. map( |location| format!( "due to {location}" ) . unwrap_or_default( ) )
78
+ caller
79
+ . map( |location| format!( "due to {location}" ) )
80
+ . unwrap_or_default( )
79
81
) ;
80
82
// Or access resources
81
83
world
@@ -102,7 +104,9 @@ fn setup(world: &mut World) {
102
104
let value = world. get :: < MyComponent > ( entity) . unwrap ( ) . 0 ;
103
105
println ! (
104
106
"{component_id:?} removed from {entity:?} with value {value:?}{}" ,
105
- caller. map( |location| format!( "due to {location}" ) . unwrap_or_default( ) )
107
+ caller
108
+ . map( |location| format!( "due to {location}" ) )
109
+ . unwrap_or_default( )
106
110
) ;
107
111
// You can also issue commands through `.commands()`
108
112
world. commands ( ) . entity ( entity) . despawn ( ) ;
You can’t perform that action at this time.
0 commit comments