Skip to content

Commit

Permalink
Write info to stdout instead of stderr (Fix #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Sep 14, 2021
1 parent 0868aef commit 3024d50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wethr"
version = "0.2.1"
version = "0.2.2"
authors = ["Silvio Clecio (silvioprog) <silvioprog@gmail.com>"]
license = "MIT"
description = "Command line weather tool."
Expand Down
4 changes: 2 additions & 2 deletions src/spinner.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use indicatif::{ProgressBar, ProgressStyle};
use indicatif::{ProgressBar, ProgressDrawTarget, ProgressStyle};
use std::{future::Future, time::Duration};
use tokio::{select, time::interval};

Expand All @@ -12,7 +12,7 @@ pub struct Spinner {
impl Spinner {
pub fn new() -> Self {
Spinner {
inner: ProgressBar::new_spinner().with_style(
inner: ProgressBar::with_draw_target(!0, ProgressDrawTarget::stdout()).with_style(
ProgressStyle::default_spinner()
.tick_strings(TICK_STRINGS)
.template(&Self::format_tpl("blue")),
Expand Down

0 comments on commit 3024d50

Please sign in to comment.