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:
fc30b86
)
hidden prep: Add a few missing Clone/Copy
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 21:55:18 +0000
(21:55 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 18:38:28 +0000
(18:38 +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 a342d016ce8b8b1d09be74cd03e50e335f0119f6..2e51962b047afd677c4d6d8616a02f89ad809ee8 100644
(file)
--- a/
src/updates.rs
+++ b/
src/updates.rs
@@
-90,7
+90,7
@@
pub struct DataLoadPlayer {
// ---------- piece updates ----------
-#[derive(Debug,Clone,Serialize)]
+#[derive(Debug,Clone,
Copy,
Serialize)]
pub enum PieceUpdateOp<NS,ZL> {
Delete(),
Insert(NS),
@@
-114,7
+114,7
@@
pub struct PieceUpdate {
pub ops: PieceUpdateOps,
}
-#[derive(Debug)]
+#[derive(Debug
,Copy,Clone
)]
pub enum PieceUpdateOps {
Simple(PieceUpdateOp<(),()>),
}