rustfmt 2023

This commit is contained in:
Dylan Thies
2023-12-29 08:57:56 -05:00
parent c05ab694ab
commit 49009dfada
11 changed files with 133 additions and 79 deletions

View File

@@ -11,12 +11,7 @@
pub fn part1(input: &str) -> String {
input
.lines()
.map(|x| {
x.split(',')
.map(unhash)
.sum::<usize>()
.to_string()
})
.map(|x| x.split(',').map(unhash).sum::<usize>().to_string())
.next()
.unwrap()
}