fix: fixed readme
This commit is contained in:
parent
3168ca7181
commit
ec14c5fab4
|
@ -3,6 +3,7 @@
|
|||
|
||||
[![Version](https://img.shields.io/crates/v/spinoff.svg)](https://crates.io/crates/spinoff) [![Downloads](https://img.shields.io/crates/d/spinoff)](https://crates.io/crates/spinoff) [![Docs](https://img.shields.io/docsrs/spinoff)](https://docs.rs/spinoff/latest/spinoff/)
|
||||
|
||||
[![asciicast](https://asciinema.org/a/509075.svg)](https://asciinema.org/a/509075)
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 201 KiB |
|
@ -3,10 +3,10 @@ use std::thread::sleep;
|
|||
use std::time::Duration;
|
||||
use strum::IntoEnumIterator;
|
||||
fn main() {
|
||||
let mut spin = spinoff::new(Spinners::Dots, "Spinning...", None);
|
||||
for spinner in Spinners::iter() {
|
||||
let spin = spinoff::new(spinner, "Spinning...", None);
|
||||
spin = spin.update(spinner, "Spinning...", None);
|
||||
sleep(Duration::from_secs(1));
|
||||
spin.clear();
|
||||
}
|
||||
println!("Done!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue