From: Ian Jackson Date: Sun, 14 Mar 2021 16:20:09 +0000 (+0000) Subject: at: Rename api_with_piece_move_synch (to insert missing "with") X-Git-Tag: otter-0.4.0~77 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b83ce5e0eb935d21cea0a32e201dc4b00ef70f08;p=otter.git at: Rename api_with_piece_move_synch (to insert missing "with") This does grab/ungrab so it should be named "_with_" Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 83a5490d..dc770ef9 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -287,7 +287,7 @@ impl Session { } #[throws(AE)] - fn api_piece_move_synch( + fn api_with_piece_move_synch( &mut self, pieces: &mut Pieces, i: PI, pos: Pos ) { pieces[i].pos = pos; @@ -506,7 +506,7 @@ impl Ctx { for (&pawn, &xoffset) in izip!(&a_pawns, [10,20].iter()) { let pos = (a_pieces[hand].pos + PosC([xoffset, 0]))?; - alice.api_piece_move_synch(&mut a_pieces, pawn, pos)?; + alice.api_with_piece_move_synch(&mut a_pieces, pawn, pos)?; } alice.synchu(&mut a_pieces)?; @@ -524,7 +524,7 @@ impl Ctx { for (xi, &p) in a_pawns.iter().enumerate().take(1) { let xix: Coord = xi.try_into().unwrap(); let pos = PosC([ (xix + 1) * 15, 20 ]); - alice.api_piece_move_synch(&mut a_pieces, p, pos)?; + alice.api_with_piece_move_synch(&mut a_pieces, p, pos)?; } alice.synchu(&mut a_pieces)?;