change rtos-trace feature flag on tracing API to trace feature flag

This commit is contained in:
Kat Perez 2025-05-08 10:58:59 -04:00
parent 8f18810ec6
commit 56b5e35c60

View File

@ -162,7 +162,7 @@ impl Spawner {
/// ///
/// # Returns /// # Returns
/// Result indicating whether the spawn was successful /// Result indicating whether the spawn was successful
#[cfg(feature = "rtos-trace")] #[cfg(feature = "trace")]
pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> {
let task = token.raw_task; let task = token.raw_task;
mem::forget(token); mem::forget(token);
@ -182,7 +182,7 @@ impl Spawner {
/// When rtos-trace is disabled, spawn_named falls back to regular spawn. /// When rtos-trace is disabled, spawn_named falls back to regular spawn.
/// This maintains API compatibility while optimizing out the name parameter. /// This maintains API compatibility while optimizing out the name parameter.
#[cfg(not(feature = "rtos-trace"))] #[cfg(not(feature = "trace"))]
pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> {
self.spawn(token) self.spawn(token)
} }