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.
1 parent 6bc0220 commit dcedf33Copy full SHA for dcedf33
crates/cargo-rail/src/commands/release/plan.rs
@@ -235,10 +235,10 @@ pub fn generate_release_plan(show_progress: bool) -> RailResult<ReleasePlan> {
235
};
236
237
// 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
240
if let Some(ref mp) = multi_progress {
- if idx < bars.len() {
- mp.inc(&bars[idx]);
241
- }
+ mp.inc(&bars[idx]);
242
}
243
244
CratePlan {
0 commit comments