diff --git a/embassy/src/executor/executor.rs b/embassy/src/executor/executor.rs index 7ef9230e4..62b781bad 100644 --- a/embassy/src/executor/executor.rs +++ b/embassy/src/executor/executor.rs @@ -65,8 +65,7 @@ pub struct Task { future: UninitCell, // Valid if STATE_RUNNING } -#[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "defmt", derive(defmt::Format))] +#[derive(Copy, Clone, Debug, defmt::Format)] pub enum SpawnError { Busy, }