From be2e955f3652b1bf21c18e050d63b4ca21b04f36 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Tue, 20 Oct 2020 13:06:08 +0200 Subject: [PATCH] open_file takes value of arg --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 37f9595..8292528 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,7 +125,7 @@ fn main() -> Result<(), Box> { .get_matches(); let mut robot_pool: Vec = Vec::new(); - let raw_conf = open_file("two_robots.txt")?; + let raw_conf = open_file(matches.value_of("file").unwrap())?; Ok(()) }