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:
87446f7
)
clock: Serialise the `current`
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 22:28:04 +0000
(22:28 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 22:28:04 +0000
(22:28 +0000)
Not sure why this wasn't done before. Probably some remnant of early
design things.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs
patch
|
blob
|
history
diff --git
a/src/clock.rs
b/src/clock.rs
index 787a3de611bde3470732bd47f0e450d56275591c..6d099e1a89d4e11fffcfb36582c7d04d95e22fb2 100644
(file)
--- a/
src/clock.rs
+++ b/
src/clock.rs
@@
-31,7
+31,7
@@
struct Clock { // PieceTrait
#[derive(Debug,Serialize,Deserialize)]
struct State {
users: [UState; 2],
-
#[serde(skip)]
current: Option<Current>,
+ current: Option<Current>,
#[serde(skip)] notify: Option<mpsc::Sender<()>>,
#[serde(skip)] running: Option<Running>,
}