diff options
Diffstat (limited to 'embassy-executor')
| -rw-r--r-- | embassy-executor/src/spawner.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor/src/spawner.rs b/embassy-executor/src/spawner.rs index 5e42f01bf..a0d246616 100644 --- a/embassy-executor/src/spawner.rs +++ b/embassy-executor/src/spawner.rs | |||
| @@ -162,7 +162,7 @@ impl Spawner { | |||
| 162 | /// | 162 | /// |
| 163 | /// # Returns | 163 | /// # Returns |
| 164 | /// Result indicating whether the spawn was successful | 164 | /// Result indicating whether the spawn was successful |
| 165 | #[cfg(feature = "rtos-trace")] | 165 | #[cfg(feature = "trace")] |
| 166 | pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { | 166 | pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { |
| 167 | let task = token.raw_task; | 167 | let task = token.raw_task; |
| 168 | mem::forget(token); | 168 | mem::forget(token); |
| @@ -182,7 +182,7 @@ impl Spawner { | |||
| 182 | 182 | ||
| 183 | /// When rtos-trace is disabled, spawn_named falls back to regular spawn. | 183 | /// When rtos-trace is disabled, spawn_named falls back to regular spawn. |
| 184 | /// This maintains API compatibility while optimizing out the name parameter. | 184 | /// This maintains API compatibility while optimizing out the name parameter. |
| 185 | #[cfg(not(feature = "rtos-trace"))] | 185 | #[cfg(not(feature = "trace"))] |
| 186 | pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { | 186 | pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { |
| 187 | self.spawn(token) | 187 | self.spawn(token) |
| 188 | } | 188 | } |
