Skip to content

Commit 833bc0b

Browse files
committed
Make width public
1 parent 2df7598 commit 833bc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<T: Write> ProgressBar<T> {
462462
}
463463

464464
/// Get terminal width, from configuration, terminal size, or default(80)
465-
fn width(&mut self) -> usize {
465+
pub fn width(&mut self) -> usize {
466466
if let Some(w) = self.width {
467467
w
468468
} else if let Some((Width(w), _)) = terminal_size() {

0 commit comments

Comments
 (0)