diff --git a/embassy-futures/src/select.rs b/embassy-futures/src/select.rs index 8cecb7fa..53fa1da6 100644 --- a/embassy-futures/src/select.rs +++ b/embassy-futures/src/select.rs @@ -4,6 +4,7 @@ use core::task::{Context, Poll}; /// Result for [`select`]. #[derive(Debug, Clone)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum Either { /// First future finished first. First(A), @@ -60,6 +61,7 @@ where /// Result for [`select3`]. #[derive(Debug, Clone)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum Either3 { /// First future finished first. First(A), @@ -118,6 +120,7 @@ where /// Result for [`select4`]. #[derive(Debug, Clone)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum Either4 { /// First future finished first. First(A),