Skip to content

Commit af1e77c

Browse files
committed
refactor(package): rename variable
1 parent 73b3092 commit af1e77c

File tree

1 file changed

+3
-3
lines changed
  • src/cargo/ops/cargo_package

1 file changed

+3
-3
lines changed

src/cargo/ops/cargo_package/vcs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn dirty_files_outside_pkg_root(
247247
.map(|path| paths::normalize_path(&pkg_root.join(path)))
248248
.collect();
249249

250-
let mut dirty_symlinks = HashSet::new();
250+
let mut dirty_files = HashSet::new();
251251
for rel_path in src_files
252252
.iter()
253253
.filter(|p| p.is_symlink_or_under_symlink())
@@ -259,10 +259,10 @@ fn dirty_files_outside_pkg_root(
259259
.filter_map(|p| paths::strip_prefix_canonical(p, workdir).ok())
260260
{
261261
if repo.status_file(&rel_path)? != git2::Status::CURRENT {
262-
dirty_symlinks.insert(workdir.join(rel_path));
262+
dirty_files.insert(workdir.join(rel_path));
263263
}
264264
}
265-
Ok(dirty_symlinks)
265+
Ok(dirty_files)
266266
}
267267

268268
/// Helper to collect dirty statuses for a single repo.

0 commit comments

Comments
 (0)