From 5321550534614b156919ce8fcd28b223408a6b4c Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Fri, 9 Nov 2018 15:11:17 -0800 Subject: [PATCH] Derive Clone for delay_queue::Key (#730) Improves API ergonomics with minimal forwards-compatibility hazard. --- tokio-timer/src/delay_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-timer/src/delay_queue.rs b/tokio-timer/src/delay_queue.rs index 21605a919..9c5ec9660 100644 --- a/tokio-timer/src/delay_queue.rs +++ b/tokio-timer/src/delay_queue.rs @@ -171,7 +171,7 @@ pub struct Expired { /// documentation for more details. /// /// [`DelayQueue`]: struct.DelayQueue.html -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Key { index: usize, }