From aba436a01792411c5187bbb601c7f80dbd010bc3 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 30 Oct 2017 12:05:03 -0400 Subject: ... --- src/main.rs | 78 ++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 32 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index bcd3b49..d162e2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,7 @@ fn inc_rotate(n: &mut u8, reset: u8, limit: u8) { } } +#[inline] fn countdown(n: u32) -> u32 { if n > 0 { n - 1 } else { n } } @@ -132,7 +133,7 @@ enum TimePanelState { struct TimePanel<'a> { gs: &'a GlobalState<'a>, - state: Cell, + state: Cell, time: RefCell