From 4d7ce6e5718ccea4a879e40c9946a1dcd3195653 Mon Sep 17 00:00:00 2001 From: Andrew Bagshaw Date: Wed, 13 Mar 2019 13:53:24 -0700 Subject: [PATCH] deduplicate --- src/verify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/verify.rs b/src/verify.rs index 877a2aa..5aa2f5c 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -22,8 +22,8 @@ pub fn verify(start_at: Option<&str>) -> Result<(), ()> { } match i.get("mode").unwrap().as_str().unwrap() { - "test" => test(i.get("path").unwrap().as_str().unwrap())?, - "compile" => compile_only(i.get("path").unwrap().as_str().unwrap())?, + "test" => test(path)?, + "compile" => compile_only(path)?, _ => (), } }