From 5a9f10bceb11efa74e41522aff02f985edb08e7e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 26 Sep 2020 20:31:57 +0100 Subject: [PATCH] tidy a bit Signed-off-by: Ian Jackson --- src/bin/otter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))?, -- 2.30.2