From fd98d8158480ca0e7b0661ec25a79ef2e013f597 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 19 Mar 2021 00:44:23 +0000 Subject: [PATCH] clock: Rename fn initial_time Signed-off-by: Ian Jackson --- src/clock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2