Merge branch 'fix-main' into 'master'

open_file takes value of arg

See merge request mhart/DancingDroids!17
This commit is contained in:
Martin HART 2020-10-20 13:08:11 +02:00
commit 1061282246
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.get_matches();
let mut robot_pool: Vec<Robot> = Vec::new();
let raw_conf = open_file("two_robots.txt")?;
let raw_conf = open_file(matches.value_of("file").unwrap())?;
Ok(())
}