Skip to content

Commit 50b0425

Browse files
committed
refactor: simplify
1 parent 95dcfaa commit 50b0425

File tree

6 files changed

+3
-20
lines changed

6 files changed

+3
-20
lines changed

2024/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[workspace]
2-
members = ["libs", "day-1", "day-2", "day-3", "day-4", "day-5"]
2+
members = ["day-1", "day-2", "day-3", "day-4", "day-5"]
33
resolver = "2"

2024/day-5/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
libs = { path = "../libs", features = ["input"] }

2024/day-5/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use libs::input;
1+
use std::fs;
22

33
fn main() {
4-
let input = input::read("./input-example.txt");
4+
let input = fs::read_to_string("./input-example.txt").expect("no error");
55

66
let sections = input.split("\n\n").collect::<Vec<_>>();
77
// let rules = sections[0].split("\n").collect::<Vec<_>>();

2024/libs/Cargo.toml

-9
This file was deleted.

2024/libs/src/input.rs

-5
This file was deleted.

2024/libs/src/lib.rs

-2
This file was deleted.

0 commit comments

Comments
 (0)