Merge branch 'fix-main' into 'master'
error handling in main See merge request mhart/DancingDroids!14
This commit is contained in:
commit
659c79ae04
@ -64,9 +64,10 @@ fn open_file(filename: &str) -> io::Result<String> {
|
||||
Ok(content)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut robot_pool: Vec<Robot> = Vec::new();
|
||||
let raw_conf = open_file("two_robots.txt");
|
||||
let raw_conf = open_file("two_robots.txt")?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user