From 32a9b3f4ae6add7d9d0e305b17af53bebd8e0255 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 28 Sep 2020 21:50:28 +0200 Subject: [PATCH] impl Format for Duration --- embassy/src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy/src/time.rs b/embassy/src/time.rs index 9a53c4da..532a53a3 100644 --- a/embassy/src/time.rs +++ b/embassy/src/time.rs @@ -117,7 +117,7 @@ impl Sub for Instant { } } -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] +#[derive(defmt::Format, Debug, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct Duration { ticks: u32, }