From 041a22a958803c65489cb7ac790a5b83e35be3ff Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 20 Oct 2020 17:04:15 +0200 Subject: [PATCH] impl defmt::Format for Instant --- embassy/src/time/instant.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy/src/time/instant.rs b/embassy/src/time/instant.rs index 154aa641..853fb745 100644 --- a/embassy/src/time/instant.rs +++ b/embassy/src/time/instant.rs @@ -7,7 +7,7 @@ use core::task::{Context, Poll}; use super::{now, Duration}; -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, defmt::Format)] pub struct Instant { ticks: u64, }