File tree 2 files changed +9
-4
lines changed
languages/bevy_mod_scripting_rhai/src
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! Rhai scripting language support for Bevy.
2
2
3
+ use std:: ops:: Deref ;
4
+
3
5
use bevy:: {
4
6
app:: Plugin ,
5
7
ecs:: { entity:: Entity , world:: World } ,
@@ -122,7 +124,11 @@ impl Default for RhaiScriptingPlugin {
122
124
let name = key. name. clone( ) ;
123
125
if ReservedKeyword :: is_reserved_keyword( & name) {
124
126
let new_name = format!( "{}_" , name) ;
125
- re_insertions. push( ( key. namespace, new_name, function. clone( ) ) ) ;
127
+ let mut new_function = function. clone( ) ;
128
+ let new_info =
129
+ function. info. deref( ) . clone( ) . with_name( new_name. clone( ) ) ;
130
+ new_function. info = new_info. into( ) ;
131
+ re_insertions. push( ( key. namespace, new_name, new_function) ) ;
126
132
}
127
133
}
128
134
for ( namespace, name, func) in re_insertions {
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ impl Xtasks {
915
915
match output. status . code ( ) {
916
916
Some ( 0 ) => Ok ( output) ,
917
917
_ => bail ! (
918
- "{} failed with exit code: {}. Features: {}" ,
918
+ "{} failed with exit code: {}. Features: {}. output {output:?} " ,
919
919
context,
920
920
output. status. code( ) . unwrap_or( -1 ) ,
921
921
app_settings. features
@@ -1362,8 +1362,7 @@ impl Xtasks {
1362
1362
. args ( [ "--threshold-test" , "t_test" ] )
1363
1363
. args ( [ "--threshold-max-sample-size" , "64" ] )
1364
1364
. args ( [ "--threshold-upper-boundary" , "0.99" ] )
1365
- . args ( [ "--thresholds-reset" ] )
1366
- . args ( [ "--err" ] ) ;
1365
+ . args ( [ "--thresholds-reset" ] ) ;
1367
1366
1368
1367
if let Some ( token) = & github_token {
1369
1368
bencher_cmd. args ( [ "--github-actions" , token] ) ;
You can’t perform that action at this time.
0 commit comments