timer: Implement Default for DelayQueue (#1118)

This commit is contained in:
Hung-I Wang
2019-06-21 10:42:52 -04:00
committed by Toby Lawrence
parent 9fa6092e5a
commit f9a0cb8792
+6
View File
@@ -711,6 +711,12 @@ impl<T> Stream for DelayQueue<T> {
}
}
impl<T> Default for DelayQueue<T> {
fn default() -> DelayQueue<T> {
DelayQueue::new()
}
}
impl<T> wheel::Stack for Stack<T> {
type Owned = usize;
type Borrowed = usize;