diff options
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 | } |
