clippy
This commit is contained in:
@@ -15,10 +15,7 @@ fn part1(input: &str) -> Int {
|
||||
l.sort();
|
||||
r.sort();
|
||||
|
||||
l.into_iter()
|
||||
.zip(r.into_iter())
|
||||
.map(|(l, r)| (l - r).abs())
|
||||
.sum()
|
||||
l.into_iter().zip(r).map(|(l, r)| (l - r).abs()).sum()
|
||||
}
|
||||
|
||||
fn part2(input: &str) -> Int {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use std::{default, fs::read_to_string};
|
||||
use std::fs::read_to_string;
|
||||
|
||||
use itertools::Itertools;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user