Skip to content

Commit

Permalink
fix tracy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Feb 12, 2025
1 parent c1ad49a commit 282566c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl DynamicScriptFunction {
args: I,
context: FunctionCallContext,
) -> Result<ScriptValue, InteropError> {
profiling::scope!("Dynamic Call ", self.name().clone());
profiling::scope!("Dynamic Call ", self.name());
let args = args.into_iter().collect::<VecDeque<_>>();
// should we be inlining call errors into the return value?
let return_val = (self.func)(context, args);
Expand Down Expand Up @@ -155,7 +155,7 @@ impl DynamicScriptFunctionMut {
args: I,
context: FunctionCallContext,
) -> Result<ScriptValue, InteropError> {
profiling::scope!("Dynamic Call Mut", self.name().clone());
profiling::scope!("Dynamic Call Mut", self.name());
let args = args.into_iter().collect::<VecDeque<_>>();
// should we be inlining call errors into the return value?
let mut write = self.func.write();
Expand Down
3 changes: 2 additions & 1 deletion crates/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ struct Features(HashSet<Feature>);

impl Default for Features {
fn default() -> Self {
// should be kept up to date with the default feature + lua54
// should be kept up to date with the default feature + lua54 on top of anything that is handy to run locally every time
Features::new(vec![
Feature::Lua54,
Feature::CoreFunctions,
Feature::BevyBindings,
Feature::Tracy,
])
}
}
Expand Down

0 comments on commit 282566c

Please sign in to comment.