We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
p
1 parent 58b2d60 commit 252ad98Copy full SHA for 252ad98
src/cargo/ops/cargo_package.rs
@@ -780,7 +780,7 @@ fn check_repo_state(
780
return Ok(None);
781
782
fn git(
783
- p: &Package,
+ pkg: &Package,
784
src_files: &[PathBuf],
785
repo: &git2::Repository,
786
opts: &PackageOpts<'_>,
@@ -803,7 +803,7 @@ fn check_repo_state(
803
.iter()
804
.filter(|src_file| dirty_files.iter().any(|path| src_file.starts_with(path)))
805
.map(|path| {
806
- path.strip_prefix(p.root())
+ path.strip_prefix(pkg.root())
807
.unwrap_or(path)
808
.display()
809
.to_string()
0 commit comments