Skip to content

Commit

Permalink
Fixed is_rustc_compiling_local_crate().
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Jun 13, 2018
1 parent b617f61 commit 6ecd86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-cov/src/argparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn is_rustc_compiling_local_crate<'a, I: IntoIterator<Item = &'a OsStr>>(arg
}

let crate_path = Path::new(arg);
return crate_path.starts_with(workspace_path);
return crate_path.is_relative() || crate_path.starts_with(workspace_path);
}
false
}
Expand Down

0 comments on commit 6ecd86a

Please sign in to comment.