chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f559f77
)
updates, errors: Add some missing Clone impls (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:07:58 +0000
(
00:07
+0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/updates.rs
b/src/updates.rs
index aafd2b169d435bc8672c3432b60f228b87020eda..e2b1cb28c0ef0d7d0f70a610c1948194d2e0f222 100644
(file)
--- 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<NS,ZL> {
Delete(),
Insert(NS),