Skip to content

Commit dcedf33

Browse files
committed
cargo-rail: housekeeping/docs/fmt; prepare command finalization
1 parent 6bc0220 commit dcedf33

File tree

1 file changed

+3
-3
lines changed
  • crates/cargo-rail/src/commands/release

1 file changed

+3
-3
lines changed

crates/cargo-rail/src/commands/release/plan.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ pub fn generate_release_plan(show_progress: bool) -> RailResult<ReleasePlan> {
235235
};
236236

237237
// Update progress bar (if enabled)
238+
// Note: idx is always < bars.len() since we enumerate workspace_pkgs
239+
// and bars has exactly workspace_pkgs.len() elements
238240
if let Some(ref mp) = multi_progress {
239-
if idx < bars.len() {
240-
mp.inc(&bars[idx]);
241-
}
241+
mp.inc(&bars[idx]);
242242
}
243243

244244
CratePlan {

0 commit comments

Comments
 (0)