From 13abe7f5572ee6a207bbb565213401b53c5af6f6 Mon Sep 17 00:00:00 2001 From: ad4mx Date: Mon, 18 Jul 2022 10:54:02 +0200 Subject: [PATCH] fix: fix README code examples --- README.md | 4 ++-- examples/stop_and_persist.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 98a6b9e..49280b1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## Usage ```rust -use spinoff::{Spinner, Spinners}; +use spinoff::{Spinner, Spinners, Color}; use std::thread::sleep; use std::time::Duration; @@ -26,7 +26,7 @@ spinner.success("Done!"); ### Update a spinner ```rust -use spinoff::{Spinner, Spinners}; +use spinoff::{Spinner, Spinners, Color}; use std::thread::sleep; use std::time::Duration; diff --git a/examples/stop_and_persist.rs b/examples/stop_and_persist.rs index 871b970..827cbd0 100644 --- a/examples/stop_and_persist.rs +++ b/examples/stop_and_persist.rs @@ -1,8 +1,8 @@ -use spinoff::{Spinner, Spinners}; +use spinoff::{Spinner, Spinners, Color}; use std::{thread::sleep, time::Duration}; fn main() { - let sp = Spinner::new(Spinners::Dots, "Loading...", None); + let sp = Spinner::new(Spinners::Dots, "Loading...", Some(Color::Blue)); sleep(Duration::from_secs(5)); sp.stop_and_persist("🍕", "Pizza!"); }