diff --git a/src/main.rs b/src/main.rs index 5bfd178..c4a4c3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,9 +64,10 @@ fn open_file(filename: &str) -> io::Result { Ok(content) } -fn main() { +fn main() -> Result<(), Box> { let mut robot_pool: Vec = Vec::new(); - let raw_conf = open_file("two_robots.txt"); + let raw_conf = open_file("two_robots.txt")?; + Ok(()) } #[cfg(test)]