fix daily template

fix import
This commit is contained in:
Kristofers Solo
2023-12-02 14:39:35 +02:00
parent 8be3d27fad
commit 9d2d34edc8
6 changed files with 5 additions and 633 deletions

View File

@@ -3,7 +3,7 @@ use {{crate_name}}::part1::process;
fn main() -> Result<()> {
let file = include_str!("../../input1.txt");
let result = process(file).context("process part 1")?;
let result = process(file)?;
println!("{}", result);
Ok(())
}

View File

@@ -1,9 +1,9 @@
use color_eyre::Result;
use {{crate_name}}::part1::process;
use {{crate_name}}::part2::process;
fn main() -> Result<()> {
let file = include_str!("../../input2.txt");
let result = process(file).context("process part 2")?;
let result = process(file)?;
println!("{}", result);
Ok(())
}

View File

@@ -10,10 +10,9 @@ mod tests {
#[test]
fn test_process() -> Result<()> {
todo!("haven't built test yet");
let input = "";
todo!("haven't built test yet");
assert_eq!("", process(input)?);
Ok(())
}
}

View File

@@ -10,8 +10,8 @@ mod tests {
#[test]
fn test_process() -> Result<()> {
todo!("haven't built test yet");
let input = "";
todo!("haven't built test yet");
assert_eq!("", process(input)?);
Ok(())
}