Skip to content

Commit e0d0498

Browse files
authored
fix: compilation error with bevy/trace_tracy (#289)
1 parent 59e9164 commit e0d0498

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bevy_mod_scripting_core/src/bindings/function/script_function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl DynamicScriptFunction {
9999
args: I,
100100
context: FunctionCallContext,
101101
) -> Result<ScriptValue, InteropError> {
102-
profiling::scope!("Dynamic Call ", self.name());
102+
profiling::scope!("Dynamic Call ", self.name().to_string());
103103
let args = args.into_iter().collect::<VecDeque<_>>();
104104
// should we be inlining call errors into the return value?
105105
let return_val = (self.func)(context, args);
@@ -155,7 +155,7 @@ impl DynamicScriptFunctionMut {
155155
args: I,
156156
context: FunctionCallContext,
157157
) -> Result<ScriptValue, InteropError> {
158-
profiling::scope!("Dynamic Call Mut", self.name());
158+
profiling::scope!("Dynamic Call Mut", self.name().to_string());
159159
let args = args.into_iter().collect::<VecDeque<_>>();
160160
// should we be inlining call errors into the return value?
161161
let mut write = self.func.write();

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ enum Feature {
5151
// Rune,
5252

5353
// Profiling
54-
#[strum(serialize = "profiling/profile-with-tracy")]
54+
#[strum(serialize = "bevy/trace_tracy")]
5555
Tracy,
5656
}
5757

0 commit comments

Comments
 (0)