Skip to content

Commit 252ad98

Browse files
committed
refactor(cargo-package): rename unclear argument p
1 parent 58b2d60 commit 252ad98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/cargo_package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ fn check_repo_state(
780780
return Ok(None);
781781

782782
fn git(
783-
p: &Package,
783+
pkg: &Package,
784784
src_files: &[PathBuf],
785785
repo: &git2::Repository,
786786
opts: &PackageOpts<'_>,
@@ -803,7 +803,7 @@ fn check_repo_state(
803803
.iter()
804804
.filter(|src_file| dirty_files.iter().any(|path| src_file.starts_with(path)))
805805
.map(|path| {
806-
path.strip_prefix(p.root())
806+
path.strip_prefix(pkg.root())
807807
.unwrap_or(path)
808808
.display()
809809
.to_string()

0 commit comments

Comments
 (0)