chiark / gitweb /
updates, errors: Add some missing Clone impls (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:07:58 +0000 (00:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:07:58 +0000 (00:07 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/updates.rs

index aafd2b169d435bc8672c3432b60f228b87020eda..e2b1cb28c0ef0d7d0f70a610c1948194d2e0f222 100644 (file)
@@ -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<NS,ZL> {
   Delete(),
   Insert(NS),