Add Clone implementation for SharedItem and SharedError
@@ -251,7 +251,7 @@ impl<F> fmt::Debug for Inner<F>
/// A wrapped item of the original future that is clonable and implements Deref
/// for ease of use.
-#[derive(Debug)]
+#[derive(Clone, Debug)]
pub struct SharedItem<T> {
item: Arc<T>,
}
@@ -266,7 +266,7 @@ impl<T> ops::Deref for SharedItem<T> {
/// A wrapped error of the original future that is clonable and implements Deref
/// for ease of use.
-#[derive(Debug)]
+#[derive(Clone, Debug)]
pub struct SharedError<E> {
error: Arc<E>,
}
