From: Ian Jackson Date: Sat, 26 Sep 2020 19:31:57 +0000 (+0100) Subject: tidy a bit X-Git-Tag: otter-0.2.0~884 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5a9f10bceb11efa74e41522aff02f985edb08e7e;p=otter.git tidy a bit Signed-off-by: Ian Jackson --- diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 7ec81b22..1c1cc82c 100644 --- 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))?,