Skip to content

Commit a230ce7

Browse files
committed
Update progress bar style to match 1.12 progress bar
1 parent 6a6ddd4 commit a230ce7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/operations.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ pub fn download_extract_sans_parent(
105105
None => ProgressBar::new_spinner(),
106106
};
107107

108-
pb.set_prefix(" Downloading:");
108+
pb.set_prefix(" Downloading");
109109
pb.set_style(
110110
ProgressStyle::default_bar()
111-
.template("{prefix:.cyan.bold} [{bar}] {bytes}/{total_bytes} eta: {eta}")
111+
.template("{prefix:.cyan.bold}: {bar:.cyan/white} {bytes}/{total_bytes} eta: {eta}")
112112
.unwrap()
113-
.progress_chars("=> "),
113+
.progress_chars("━╸━"),
114114
);
115115

116116
let last_modified = match response
@@ -204,12 +204,12 @@ pub fn download_extract_sans_parent(
204204
ProgressBar::new_spinner()
205205
};
206206

207-
pb.set_prefix(" Downloading:");
207+
pb.set_prefix(" Downloading");
208208
pb.set_style(
209209
ProgressStyle::default_bar()
210-
.template("{prefix:.cyan.bold} [{bar}] {bytes}/{total_bytes} eta: {eta}")
210+
.template("{prefix:.cyan.bold}: {bar:.cyan/white} {bytes}/{total_bytes} eta: {eta}")
211211
.unwrap()
212-
.progress_chars("=> "),
212+
.progress_chars("━╸━"),
213213
);
214214

215215
let response_with_pb = pb.wrap_read(DataReaderWrap(reader));

0 commit comments

Comments
 (0)