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:
e2cf90d
)
wdt: wdt-simple: get client into gots
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 29 Jan 2021 22:55:32 +0000
(22:55 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:39:31 +0000
(
00:39
+0000)
Not used yet
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-simple.rs
patch
|
blob
|
history
diff --git
a/wdriver/wdt-simple.rs
b/wdriver/wdt-simple.rs
index a73df69595bc973568c943c3e74f0d33c7b02e2f..01aed1359c2dac466b5a0e774427219fc1fee8d6 100644
(file)
--- a/
wdriver/wdt-simple.rs
+++ b/
wdriver/wdt-simple.rs
@@
-222,6
+222,7
@@
impl Ctx {
now: Pos,
log: Vec<String>,
held: Option<String>,
+ client: String,
}
let gots = sides.iter().map(|side|{
@@
-241,11
+242,16
@@
impl Ctx {
.collect::<Result<Vec<String>,_>>()?;
let held = w.piece_held(&pc)?;
+ let client = w.client()?;
- Ok::<_,AE>(Got { now, log, held })
+ Ok::<_,AE>(Got { now, log, held
, client
})
}).collect::<Result<Vec<_>,AE>>()?;
dbg!(gots);
+/*
+ let yesno = izip!(&sides, &gots).map(|side, got|{
+ let yn =
+ }).collect::<Result<Vec<_>,AE>>.context("compare")?;*/
}
}