projects
/
advent_of_code_2022.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55272ae
)
Remove useless imports
author
Greg Burri
<greg.burri@gmail.com>
Sat, 3 Dec 2022 18:18:15 +0000
(19:18 +0100)
committer
Greg Burri
<greg.burri@gmail.com>
Sat, 3 Dec 2022 18:18:15 +0000
(19:18 +0100)
src/day03.rs
patch
|
blob
|
history
diff --git
a/src/day03.rs
b/src/day03.rs
index
b38bc82
..
c798497
100644
(file)
--- a/
src/day03.rs
+++ b/
src/day03.rs
@@
-1,11
+1,7
@@
-use std::io::BufRead;
-
-use itertools::Itertools;
-
pub fn parse(s: &str) -> Vec<Vec<u8>> {
s.lines()
.map(|l| {
- l.as_bytes().into_iter().map(letter_to_priority).collect
_vec
()
+ l.as_bytes().into_iter().map(letter_to_priority).collect()
}).collect()
}