fix: fix README.md badges

This commit is contained in:
ad4mx 2022-07-15 21:23:37 +02:00
parent f381c2cc7a
commit a88b8e785c
2 changed files with 2 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# spinoff # spinoff
`spinoff` is a simple to use library for displaying spinners in the terminal, with plenty of features and options. `spinoff` is a simple to use library for displaying spinners in the terminal, with plenty of features and options.
[![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) [![License](https://img.shields.io/crates/l/spinoff.svg)](https://crates.io/crates/spinoff) [![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/latest/spinoff)
## Usage ## Usage

View file

@ -72,6 +72,7 @@ pub fn new(spinner_type: Spinners, msg: StringLiteral, color: Option<StringLiter
thread::spawn(move || { thread::spawn(move || {
let spinner_data = SPINNER_FRAMES.get(&spinner_type).unwrap(); let spinner_data = SPINNER_FRAMES.get(&spinner_type).unwrap();
let mut stdout = stdout(); let mut stdout = stdout();
// Iterate over all the frames of the spinner while the atomic bool is true.
let iterator = spinner_data let iterator = spinner_data
.frames .frames
.iter() .iter()