From e4319de3d526285381f5cc53e14f9a17d123a81a Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Sat, 3 Apr 2021 20:30:34 +0300 Subject: const generics --- src/tq.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/tq.rs') diff --git a/src/tq.rs b/src/tq.rs index 985e0f8..cd44abe 100644 --- a/src/tq.rs +++ b/src/tq.rs @@ -1,5 +1,5 @@ use crate::{ - linked_list::{ArrayLength, LinkedList, Min, Node}, + linked_list::{LinkedList, Min}, time::{Clock, Instant}, Monotonic, }; @@ -14,16 +14,14 @@ fn unwrapper(val: Result) -> T { } } -pub struct TimerQueue(pub LinkedList, Min, N>) +pub struct TimerQueue(pub LinkedList, Min, N>) where Mono: Monotonic, - N: ArrayLength>>, Task: Copy; -impl TimerQueue +impl TimerQueue where Mono: Monotonic, - N: ArrayLength>>, Task: Copy, { pub fn new() -> Self { -- cgit v1.2.3