From: Ian Jackson Date: Thu, 31 Mar 2022 02:14:19 +0000 (+0100) Subject: clippy: Miscellaneous minor changes X-Git-Tag: otter-1.0.0~35 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bcdf468668799b089eb04ec25b7b72637ef56f46;p=otter.git clippy: Miscellaneous minor changes Signed-off-by: Ian Jackson --- diff --git a/src/updates.rs b/src/updates.rs index 51f41f34..eb46d394 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -673,7 +673,7 @@ impl<'r> PrepareUpdatesBuffer<'r> { None => return Ok(None), } }; - let u = Self::piece_update_player(ioccults,gs,gpc,ipc,ops,&pri)?; + let u = Self::piece_update_player(ioccults,gs,gpc,ipc,ops,pri)?; Ok::<_,IE>(u) }, @@ -855,7 +855,7 @@ impl PreparedUpdate { let zg = op.new_z_generation(); TUE::Recorded { piece, cseq, zg, svg: ns.map(|ns| &ns.svg) } }, - FTG::Piece => TUE::Piece(pue_piece_to_tue_p(&pue_p, player)?), + FTG::Piece => TUE::Piece(pue_piece_to_tue_p(pue_p, player)?), FTG::Exactly(x) => x, }; Some(tue) @@ -886,7 +886,7 @@ impl PreparedUpdate { TUE::MoveHistClear{} } PUE::Log(logent) => { - TUE::Log((&tz, &logent)) + TUE::Log((tz, logent)) } &PUE::SetTableSize(size) => { TUE::SetTableSize(size) @@ -930,7 +930,7 @@ impl PreparedUpdate { match partially { POEPP::Unprocessed => continue, POEPP::Partially => { - match pue_piece_to_tue(&state, player, dest) { + match pue_piece_to_tue(state, player, dest) { Some(tue) => tue, None => continue, }