From 1ee2dfa03e6d3578ffaac810b49b726e7da9cf36 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 28 Aug 2022 21:15:07 +0200 Subject: [PATCH] futures: derive defmt for Eithers --- embassy-futures/src/select.rs | 3 +++ 1 file changed, 3 insertions(+) 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),