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:
0fa6277
)
tidy a bit
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 19:31:57 +0000
(20:31 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 19:31:57 +0000
(20:31 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otter.rs
patch
|
blob
|
history
diff --git
a/src/bin/otter.rs
b/src/bin/otter.rs
index 7ec81b2224d6b360ce0fb4d08ea686df10af519d..1c1cc82cf82fcf58d855ecda49cb359b522e7663 100644
(file)
--- a/
src/bin/otter.rs
+++ b/
src/bin/otter.rs
@@
-307,7
+307,7
@@
impl ConnForGame {
let insns = vec![ MgmtGameInstruction::ListPieces ];
let mut responses = self.alter_game(insns, None)?;
match responses.as_mut_slice() {
-
&mut [MgmtGameResponse::Pieces(ref mut
pieces)] => {
+
[MgmtGameResponse::Pieces(
pieces)] => {
return mem::take(pieces)
},
wat => Err(anyhow!("ListPieces => {:?}", &wat))?,