cleanup many clippy pedantic warnings

Signed-off-by: Stephen Waits <swaits@amazon.com>
This commit is contained in:
Stephen Waits committed 2020-12-16 13:51:35 -08:00
1 parent 2a13ede1c4
commit 39746c982c
11 files changed
+45 -62

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ fn mins_to_next_departure(dep_time: usize, bus: &BusRoute) -> usize {
// the Chinese Remainder Theorem.
//
// code from https://rosettacode.org/wiki/Chinese_remainder_theorem#Rust
#[allow(clippy::many_single_char_names)]
fn egcd(a: i64, b: i64) -> (i64, i64, i64) {
if a == 0 {
(b, 0, 1)