Use '/' instead of "/" as argument to rfind (#141)

This commit is contained in:
Casey Rodarmor 2016-12-30 00:23:32 -08:00 committed by GitHub
parent 02a160d2e0
commit d17911a573

View File

@ -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.");
}