Skip to content

Commit 8e76c7e

Browse files
Apply review suggestions
1 parent 7ed089b commit 8e76c7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/util/progress.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ struct Format {
4040
max_print: usize,
4141
}
4242

43+
/// Which escape code to use for progress reporting.
44+
///
45+
/// There is more codes, but we only use these two.
4346
enum ProgressCode {
4447
None,
4548
Normal(u8),
@@ -101,7 +104,7 @@ impl<'cfg> Progress<'cfg> {
101104
throttle: Throttle::new(),
102105
last_line: None,
103106
fixed_width: progress_config.width,
104-
last_pbar: 255,
107+
last_pbar: u8::MAX,
105108
}),
106109
}
107110
}

0 commit comments

Comments
 (0)