File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
languages/bevy_mod_scripting_rhai/src Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11//! Rhai scripting language support for Bevy.
22
3+ use std:: ops:: Deref ;
4+
35use bevy:: {
46 app:: Plugin ,
57 ecs:: { entity:: Entity , world:: World } ,
@@ -122,7 +124,11 @@ impl Default for RhaiScriptingPlugin {
122124 let name = key. name. clone( ) ;
123125 if ReservedKeyword :: is_reserved_keyword( & name) {
124126 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) ) ;
126132 }
127133 }
128134 for ( namespace, name, func) in re_insertions {
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ impl Xtasks {
915915 match output. status . code ( ) {
916916 Some ( 0 ) => Ok ( output) ,
917917 _ => bail ! (
918- "{} failed with exit code: {}. Features: {}" ,
918+ "{} failed with exit code: {}. Features: {}. output {output:?} " ,
919919 context,
920920 output. status. code( ) . unwrap_or( -1 ) ,
921921 app_settings. features
@@ -1362,8 +1362,7 @@ impl Xtasks {
13621362 . args ( [ "--threshold-test" , "t_test" ] )
13631363 . args ( [ "--threshold-max-sample-size" , "64" ] )
13641364 . args ( [ "--threshold-upper-boundary" , "0.99" ] )
1365- . args ( [ "--thresholds-reset" ] )
1366- . args ( [ "--err" ] ) ;
1365+ . args ( [ "--thresholds-reset" ] ) ;
13671366
13681367 if let Some ( token) = & github_token {
13691368 bencher_cmd. args ( [ "--github-actions" , token] ) ;
You can’t perform that action at this time.
0 commit comments