Description
When building a bevy project that uses bevy_mod_scripting with the tracy feature enabled, I get the following error:
error[E0277]: the trait bound `Cow<'_, str>: profiling::tracing::Value` is not satisfied
--> /Users/abeltoy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_mod_scripting_core-0.9.3/src/bindings/function/script_function.rs:114:9
|
114 | profiling::scope!("Dynamic Call ", self.name().clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `profiling::tracing::Value` is not implemented for `Cow<'_, str>`
|
= help: the following other types implement trait `profiling::tracing::Value`:
&'a T
&'a mut T
(dyn StdError + 'static)
(dyn StdError + Send + 'static)
(dyn StdError + Send + Sync + 'static)
(dyn StdError + Sync + 'static)
Arguments<'a>
Box<T>
and 35 others
= note: required for the cast from `&Cow<'_, str>` to `&dyn profiling::tracing::Value`
= note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `profiling::scope` (in Nightly builds, run with -Z macro-backtrace for more info)
This error occurs in DynamicScriptFunction
call
's method on this line:
profiling::scope!("Dynamic Call ", self.name().clone());
and on DynamicScriptFunctionMut
call
's method on this line:
profiling::scope!("Dynamic Call Mut", self.name().clone());