From 37b180c61eb58515561fb59e0d4fc558cc8d5e53 Mon Sep 17 00:00:00 2001 From: Dániel Buga Date: Mon, 3 Feb 2025 17:20:35 +0100 Subject: Allow inlining on time driver boundary --- embassy-time/src/instant.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'embassy-time/src') diff --git a/embassy-time/src/instant.rs b/embassy-time/src/instant.rs index 909f1b173..cae80e51f 100644 --- a/embassy-time/src/instant.rs +++ b/embassy-time/src/instant.rs @@ -17,6 +17,7 @@ impl Instant { pub const MAX: Instant = Instant { ticks: u64::MAX }; /// Returns an Instant representing the current time. + #[inline] pub fn now() -> Instant { Instant { ticks: embassy_time_driver::now(), -- cgit