From fb83813662b554e27a6b3b4bf269589d22636825 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Sun, 10 Dec 2023 12:35:15 -0600 Subject: [PATCH] cleaned up warning. --- days/day06/src/parse.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/days/day06/src/parse.rs b/days/day06/src/parse.rs index 726aeb8..979157a 100644 --- a/days/day06/src/parse.rs +++ b/days/day06/src/parse.rs @@ -13,13 +13,13 @@ pub struct Race { } impl Race { - pub fn distance_given_charge_time(&self, charge_time: u64) -> u64 { - if charge_time <= self.time { - charge_time * (self.time - charge_time) - } else { - 0 - } - } + // pub fn distance_given_charge_time(&self, charge_time: u64) -> u64 { + // if charge_time <= self.time { + // charge_time * (self.time - charge_time) + // } else { + // 0 + // } + // } pub fn num_ways_to_win(&self) -> u64 { // since distance = charge(time-charge),