diff options
| author | Ralph Ursprung <[email protected]> | 2025-07-28 15:37:34 +0200 |
|---|---|---|
| committer | Ralph Ursprung <[email protected]> | 2025-07-28 15:44:21 +0200 |
| commit | 98595f659c309703aab411b6b3be7579b6e93c5d (patch) | |
| tree | c2c138d3d0e2e1348b66ee31dae9b2f772d801d1 /embassy-time-queue-utils/src/queue_generic.rs | |
| parent | 8f64a14bebe711962af0136a5acd2b3cef509402 (diff) | |
`embassy-time`: add missing `Debug` & `defmt::Format` derives
`defmt::Format` is *not* implemented for `MockDriver` and
`InnerMockDriver` because the former contains the latter and the latter
is using `Queue` from `embassy-time-queue-utils` which so far does not
have a `defmt` dependency. since this is just a mock driver it shouldn't
be relevant if it has no `defmt::Format` impl.
Diffstat (limited to 'embassy-time-queue-utils/src/queue_generic.rs')
| -rw-r--r-- | embassy-time-queue-utils/src/queue_generic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-time-queue-utils/src/queue_generic.rs b/embassy-time-queue-utils/src/queue_generic.rs index 232035bc6..bff7a4735 100644 --- a/embassy-time-queue-utils/src/queue_generic.rs +++ b/embassy-time-queue-utils/src/queue_generic.rs | |||
| @@ -34,6 +34,7 @@ impl Ord for Timer { | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /// A timer queue with a pre-determined capacity. | 36 | /// A timer queue with a pre-determined capacity. |
| 37 | #[derive(Debug)] | ||
| 37 | pub struct ConstGenericQueue<const QUEUE_SIZE: usize> { | 38 | pub struct ConstGenericQueue<const QUEUE_SIZE: usize> { |
| 38 | queue: Vec<Timer, QUEUE_SIZE>, | 39 | queue: Vec<Timer, QUEUE_SIZE>, |
| 39 | } | 40 | } |
| @@ -119,6 +120,7 @@ const QUEUE_SIZE: usize = 128; | |||
| 119 | const QUEUE_SIZE: usize = 64; | 120 | const QUEUE_SIZE: usize = 64; |
| 120 | 121 | ||
| 121 | /// A timer queue with a pre-determined capacity. | 122 | /// A timer queue with a pre-determined capacity. |
| 123 | #[derive(Debug)] | ||
| 122 | pub struct Queue { | 124 | pub struct Queue { |
| 123 | queue: ConstGenericQueue<QUEUE_SIZE>, | 125 | queue: ConstGenericQueue<QUEUE_SIZE>, |
| 124 | } | 126 | } |
