From: Ian Jackson Date: Sat, 30 Jan 2021 00:07:58 +0000 (+0000) Subject: updates, errors: Add some missing Clone impls (nfc) X-Git-Tag: otter-0.4.0~642 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3e617762b45635ea801832844e099b6fb3688c7c;p=otter.git updates, errors: Add some missing Clone impls (nfc) Signed-off-by: Ian Jackson --- diff --git a/src/updates.rs b/src/updates.rs index aafd2b16..e2b1cb28 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -63,7 +63,7 @@ pub enum PreparedUpdateEntry { } #[allow(non_camel_case_types)] -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct PreparedUpdateEntry_Piece { by_client: IsResponseToClientOp, piece: VisiblePieceId, @@ -88,7 +88,7 @@ pub struct DataLoadPlayer { // ---------- piece updates ---------- -#[derive(Debug,Serialize)] +#[derive(Debug,Clone,Serialize)] pub enum PieceUpdateOp { Delete(), Insert(NS),