Remove env stuff from input reading
No idea what last year me was thinking
This commit is contained in:
parent
85370a3b3b
commit
63c695608e
|
@ -1,13 +1,5 @@
|
|||
use std::env;
|
||||
|
||||
pub fn read_file(day: usize) -> String {
|
||||
std::fs::read_to_string(
|
||||
env::args()
|
||||
.nth(1)
|
||||
.filter(|n| n != "--bench")
|
||||
.unwrap_or_else(|| format!("inputs/day{:0>2}", day)),
|
||||
)
|
||||
.unwrap()
|
||||
std::fs::read_to_string(format!("inputs/day{:0>2}", day)).unwrap()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue
Block a user