From 7d89451fef0f92f0fb49bc781c10e6d4a69659e5 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Tue, 20 Oct 2020 13:17:50 +0200 Subject: [PATCH] we don't want to panic! --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8292528..95c945d 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(matches.value_of("file").unwrap())?; + let raw_conf = open_file(matches.value_of("file").unwrap_or("two_robots.txt"))?; Ok(()) }