fix: fixed readme

This commit is contained in:
ad4mx 2022-07-16 16:15:01 +02:00
parent 3168ca7181
commit ec14c5fab4
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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!");
}