diff --git a/src/utils.rs b/src/utils.rs index a5cd09c..1b8f5f7 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,5 +1,5 @@ pub(crate) fn calculate_score(kms: f64) -> u64 { - let kilometers = kms.floor() as u64; + let kilometers = kms as u64; if kilometers > 1500 { return 0; }