From 3e617762b45635ea801832844e099b6fb3688c7c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 30 Jan 2021 00:07:58 +0000 Subject: [PATCH] updates, errors: Add some missing Clone impls (nfc) Signed-off-by: Ian Jackson --- src/updates.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), -- 2.30.2