aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-02-03 16:42:38 +0000
committerGitHub <[email protected]>2025-02-03 16:42:38 +0000
commit113383b8b1c08d9240af80bf2f1c5811d46bf1a2 (patch)
tree96e34248733af426ad83d3fb369ae8229d8a7bd8 /embassy-time/src
parent8c5e34604c8b7c934259ba991433ae8e9f1ca61d (diff)
parent37b180c61eb58515561fb59e0d4fc558cc8d5e53 (diff)
Merge pull request #3840 from bugadani/inline
Allow inlining on time driver boundary
Diffstat (limited to 'embassy-time/src')
-rw-r--r--embassy-time/src/instant.rs1
1 files changed, 1 insertions, 0 deletions
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 {
17 pub const MAX: Instant = Instant { ticks: u64::MAX }; 17 pub const MAX: Instant = Instant { ticks: u64::MAX };
18 18
19 /// Returns an Instant representing the current time. 19 /// Returns an Instant representing the current time.
20 #[inline]
20 pub fn now() -> Instant { 21 pub fn now() -> Instant {
21 Instant { 22 Instant {
22 ticks: embassy_time_driver::now(), 23 ticks: embassy_time_driver::now(),