File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ impl<
461
461
. collect :: < Result < Vec < _ > , _ > > ( )
462
462
}
463
463
_ => {
464
- return Err ( mlua:: Error :: FromLuaConversionError {
464
+ Err ( mlua:: Error :: FromLuaConversionError {
465
465
from : new_val. type_name ( ) ,
466
466
to : "userdata or table" ,
467
467
message : Some ( "LuaVec can only be assigned with itself or a table" . to_owned ( ) ) ,
Original file line number Diff line number Diff line change @@ -113,13 +113,13 @@ fn call_init(
113
113
> ,
114
114
) {
115
115
entity_query. for_each ( |( entity, name, scripts) | {
116
- if let Some ( _ ) = scripts {
116
+ if scripts . is_some ( ) {
117
117
events. send (
118
118
RhaiEvent {
119
119
hook_name : "on_init" . to_owned ( ) ,
120
120
args : ScriptArgs {
121
121
delta_time : None ,
122
- entity_name : name. clone ( ) . map ( |n| n. to_string ( ) ) ,
122
+ entity_name : name. map ( |n| n. to_string ( ) ) ,
123
123
} ,
124
124
recipients : Recipients :: Entity ( entity) ,
125
125
} ,
You can’t perform that action at this time.
0 commit comments