Bikeshedding

This commit is contained in:
Daniel Flanagan 2022-12-01 16:34:46 -06:00
parent 113e8c9996
commit c32122bf50
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -17,7 +17,7 @@ fn ordered_calories(input: &str) -> Vec<i32> {
}
}
}
result.sort_by(|a, b| b.partial_cmp(a).unwrap());
result.sort_by(|a, b| b.cmp(a));
result
}