use std::fs; use std::io::{self, BufRead, Read, Seek}; fn main() { let filename = "etc/p03.txt"; let file = fs::File::open(filename).expect("Can't open file"); let mut reader = io::BufReader::new(file); println!("PART ONE ---------------"); part1(reader.by_ref().lines()); reader.rewind().expect("Can't rewind"); println!("\n PART TWO ---------------"); part2(reader.lines()); } fn part1(lines: impl Iterator>) { } fn part2(lines: impl Iterator>) { } #[cfg(test)] mod tests { use super::*; }