cleaned up warning.
This commit is contained in:
parent
0a43e8a355
commit
fb83813662
|
@ -13,13 +13,13 @@ pub struct Race {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Race {
|
impl Race {
|
||||||
pub fn distance_given_charge_time(&self, charge_time: u64) -> u64 {
|
// pub fn distance_given_charge_time(&self, charge_time: u64) -> u64 {
|
||||||
if charge_time <= self.time {
|
// if charge_time <= self.time {
|
||||||
charge_time * (self.time - charge_time)
|
// charge_time * (self.time - charge_time)
|
||||||
} else {
|
// } else {
|
||||||
0
|
// 0
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
pub fn num_ways_to_win(&self) -> u64 {
|
pub fn num_ways_to_win(&self) -> u64 {
|
||||||
// since distance = charge(time-charge),
|
// since distance = charge(time-charge),
|
||||||
|
|
Loading…
Reference in a new issue