Small adjustment in day03

This commit is contained in:
Malte Tammena 2022-12-04 08:19:26 +01:00
parent 7e12364a29
commit 3b4a20bce0

View file

@ -32,7 +32,7 @@ impl IsTrue for Assert<true> {}
fn parse_chars<S: AsRef<str>>(line: S) -> Bitmask { fn parse_chars<S: AsRef<str>>(line: S) -> Bitmask {
line.as_ref() line.as_ref()
.as_bytes() .as_bytes()
.iter() .into_iter()
.map(Bitmask::from_alpha) .map(Bitmask::from_alpha)
.reduce(std::ops::BitOr::bitor) .reduce(std::ops::BitOr::bitor)
.unwrap() .unwrap()