summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bagshaw <abagshaw@hotmail.ca>2019-03-13 13:53:24 -0700
committerAndrew Bagshaw <abagshaw@hotmail.ca>2019-03-13 13:53:24 -0700
commit4d7ce6e5718ccea4a879e40c9946a1dcd3195653 (patch)
treee70550b2fc349ae72aa6bb1db2c2f17f39729bf4
parent3f114cc0699e2600e92acb466ae2dd90e0626715 (diff)
deduplicate
-rw-r--r--src/verify.rs4
1 files 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)?,
_ => (),
}
}