cleaned up warning.

This commit is contained in:
Gabe Venberg 2023-12-10 12:35:15 -06:00
parent 0a43e8a355
commit fb83813662

View file

@ -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),