From d17911a57378b6d862794ba33b14f5366a4be9dc Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 30 Dec 2016 00:23:32 -0800 Subject: [PATCH] Use '/' instead of "/" as argument to rfind (#141) --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 67c6376..a087df9 100644 --- a/src/app.rs +++ b/src/app.rs @@ -186,7 +186,7 @@ pub fn app() { .enumerate() .flat_map(|(i, argument)| { if i == 0 { - if let Some(i) = argument.rfind("/") { + if let Some(i) = argument.rfind('/') { if matches.is_present("working-directory") { die!("--working-directory and a path prefixed recipe may not be used together."); }