From bb87c1a75d09811e5663629a3c55a12848ad3436 Mon Sep 17 00:00:00 2001 From: km19809 Date: Fri, 5 Mar 2021 14:26:25 +0900 Subject: [PATCH] changed writeln! to write+\r\n --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/stage.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 529d0bd..5f0e3f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -179,7 +179,7 @@ dependencies = [ [[package]] name = "pusher" -version = "0.3.0" +version = "0.3.1" dependencies = [ "clap", "crossterm", diff --git a/Cargo.toml b/Cargo.toml index e79bf70..a92d04f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pusher" -version = "0.3.0" +version = "0.3.1" authors = ["km19809 "] edition = "2018" license = "MIT" diff --git a/src/stage.rs b/src/stage.rs index 6bdd455..b8fd807 100644 --- a/src/stage.rs +++ b/src/stage.rs @@ -323,9 +323,9 @@ impl fmt::Display for Stage { } write!(f, "\r\n")?; } - writeln!( + write!( f, - "Matched goal(s): {}/{}", + "Matched goal(s): {}/{}\r\n", self.matched_goals, self.total_goals ) } @@ -337,9 +337,9 @@ impl fmt::Display for Stage { } write!(f, "\r\n")?; } - writeln!( + write!( f, - "\x1b[0mMatched goal(s): {}/{}", + "\x1b[0mMatched goal(s): {}/{}\r\n", self.matched_goals, self.total_goals ) }