summaryrefslogtreecommitdiff
path: root/src/progress.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/progress.rs')
-rwxr-xr-x[-rw-r--r--]src/progress.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progress.rs b/src/progress.rs
index f6f2227..bd9c806 100644..100755
--- a/src/progress.rs
+++ b/src/progress.rs
@@ -1,3 +1,4 @@
+// src/progress.rs
use std::io::{self, Write};
pub struct ProgressBar {
@@ -17,14 +18,13 @@ impl ProgressBar {
}
}
-
pub fn inc(&mut self, msg: &str) {
self.current += 1;
self.message = msg.to_string();
self.render();
}
- fn render(&self) {
+ pub fn render(&self) {
let filled = if self.total == 0 {
0
} else {