Skip to content

Commit be119bd

Browse files
authored
Remove unnecessary spinner display in multi examples (#682)
1 parent 1a5f606 commit be119bd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/multi.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ fn main() {
4545
thread::sleep(Duration::from_secs(2));
4646
}
4747
pb.inc(1);
48-
let m = m.clone();
4948
let pb2 = pb2.clone();
5049
threads.push(thread::spawn(move || {
51-
let spinner = m.add(ProgressBar::new_spinner().with_message(i.to_string()));
52-
spinner.enable_steady_tick(Duration::from_millis(100));
5350
thread::sleep(
5451
rand::thread_rng().gen_range(Duration::from_secs(1)..Duration::from_secs(5)),
5552
);

0 commit comments

Comments
 (0)