fix: updated example
This commit is contained in:
parent
43a679fe63
commit
d561373acf
|
@ -4,7 +4,7 @@ use std::time::Duration;
|
||||||
use strum::IntoEnumIterator;
|
use strum::IntoEnumIterator;
|
||||||
fn main() {
|
fn main() {
|
||||||
for spinner in Spinners::iter() {
|
for spinner in Spinners::iter() {
|
||||||
let spin = spinoff::new(spinner, "", None);
|
let spin = spinoff::new(spinner, "Spinning...", None);
|
||||||
sleep(Duration::from_secs(1));
|
sleep(Duration::from_secs(1));
|
||||||
spin.clear();
|
spin.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue