From: Ian Jackson Date: Fri, 19 Mar 2021 00:44:23 +0000 (+0000) Subject: clock: Rename fn initial_time X-Git-Tag: otter-0.5.0~647 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fd98d8158480ca0e7b0661ec25a79ef2e013f597;p=otter.git clock: Rename fn initial_time Signed-off-by: Ian Jackson --- diff --git a/src/clock.rs b/src/clock.rs index 6fb9cd82..037eb7c3 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -119,7 +119,7 @@ struct Current { } impl ChessClock { - fn time(&self) -> TimeSpec { + fn initial_time(&self) -> TimeSpec { TVL::seconds(self.time.into()) } } @@ -168,7 +168,7 @@ impl Clock { } else { URS::Running } - } else if ustate.remaining == self.spec.time() { + } else if ustate.remaining == self.spec.initial_time() { URS::Reset } else { URS::Stopped