Derive Clone for delay_queue::Key (#730)

Improves API ergonomics with minimal forwards-compatibility hazard.
This commit is contained in:
Benjamin Saunders 2018-11-09 15:11:17 -08:00 committed by Carl Lerche
parent 32e1cafb57
commit 5321550534

View File

@ -171,7 +171,7 @@ pub struct Expired<T> {
/// documentation for more details. /// documentation for more details.
/// ///
/// [`DelayQueue`]: struct.DelayQueue.html /// [`DelayQueue`]: struct.DelayQueue.html
#[derive(Debug)] #[derive(Debug, Clone)]
pub struct Key { pub struct Key {
index: usize, index: usize,
} }