Skip to content

Commit 003ca72

Browse files
committed
code cleanup
1 parent 80775db commit 003ca72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/06.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn parse_data(input: &str) -> DataType {
3434
let mut obstructions = FastSet::new();
3535

3636
let height = input.lines().count();
37-
let width = input.split_once("\n").unwrap().0.len();
37+
let width = input.lines().next().unwrap().len();
3838

3939
for (y, line) in input.lines().enumerate() {
4040
for (x, v) in line.bytes().enumerate() {

0 commit comments

Comments
 (0)