Skip to content

Commit ecb49c4

Browse files
committed
chore: fix more compilation issues
1 parent 5c21292 commit ecb49c4

File tree

2 files changed

+9
-4
lines changed
  • crates

2 files changed

+9
-4
lines changed

crates/languages/bevy_mod_scripting_rhai/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Rhai scripting language support for Bevy.
22
3+
use std::ops::Deref;
4+
35
use 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 {

crates/xtask/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)