aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRogan Morrow <[email protected]>2025-09-22 13:43:57 +1000
committerRogan Morrow <[email protected]>2025-09-22 13:43:57 +1000
commit57f1517f70bafb0709014f7a44e2d1c8a4841739 (patch)
tree4983d5235a5be4c1b8417da2ab4fa5d6603e1159
parenta0a204f586301ee4e014c3673c2ecd3ad90c504c (diff)
fix rustfmt and add changelog
-rw-r--r--embassy-time/CHANGELOG.md2
-rw-r--r--embassy-time/src/instant.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/embassy-time/CHANGELOG.md b/embassy-time/CHANGELOG.md
index 572571215..4a50da8ef 100644
--- a/embassy-time/CHANGELOG.md
+++ b/embassy-time/CHANGELOG.md
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8<!-- next-header --> 8<!-- next-header -->
9## Unreleased - ReleaseDate 9## Unreleased - ReleaseDate
10 10
11- Add as_nanos and from_nanos where missing
12
11## 0.5.0 - 2025-08-26 13## 0.5.0 - 2025-08-26
12 14
13- Allow inlining on time driver boundary 15- Allow inlining on time driver boundary
diff --git a/embassy-time/src/instant.rs b/embassy-time/src/instant.rs
index a311b365c..4e6670032 100644
--- a/embassy-time/src/instant.rs
+++ b/embassy-time/src/instant.rs
@@ -1,7 +1,7 @@
1use core::fmt; 1use core::fmt;
2use core::ops::{Add, AddAssign, Sub, SubAssign}; 2use core::ops::{Add, AddAssign, Sub, SubAssign};
3 3
4use super::{Duration, GCD_1K, GCD_1M, GCD_1G, TICK_HZ}; 4use super::{Duration, GCD_1G, GCD_1K, GCD_1M, TICK_HZ};
5 5
6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] 6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
7#[cfg_attr(feature = "defmt", derive(defmt::Format))] 7#[cfg_attr(feature = "defmt", derive(defmt::Format))]