diff --git a/cargo-cov/src/argparse.rs b/cargo-cov/src/argparse.rs index 1dfd595..6d81c36 100644 --- a/cargo-cov/src/argparse.rs +++ b/cargo-cov/src/argparse.rs @@ -109,7 +109,7 @@ pub fn is_rustc_compiling_local_crate<'a, I: IntoIterator>(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 }