We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d4eb52 commit 4f45ed2Copy full SHA for 4f45ed2
day01/Cargo.toml
@@ -4,3 +4,4 @@ version = "0.1.0"
4
authors = ["Peter Goodspeed-Niklaus <[email protected]>"]
5
6
[dependencies]
7
+util = { path = "../util" }
day01/src/main.rs
@@ -1,7 +1,10 @@
1
extern crate day01;
2
use day01::captcha_str;
3
+extern crate util;
+use util::read_file;
+
fn main() {
- let input_str = include_str!("../input.txt").trim();
- println!("Captcha for input: {:?}", captcha_str(&input_str));
8
+ let input = read_file("../input.txt");
9
+ println!("Captcha for input: {:?}", captcha_str(input.trim()));
10
}
0 commit comments