From bc51fd2be217bb698ae0b92037575bce9a888fae Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Fri, 28 May 2021 12:34:09 -0500 Subject: [PATCH] fix: make eprint actually eprint --- Cargo.toml | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d32caef..900d7a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,12 +11,12 @@ repository = "https://github.com/EverlastingBugstopper/billboard" version = "0.1.0" [dependencies] -console = "0.9" +console = "0.14" term_size = "0.3" thiserror = "1.0" [dev-dependencies] -version-sync = "0.8" +version-sync = "0.9" [[example]] name = "alignment" diff --git a/src/lib.rs b/src/lib.rs index 81900cd..7f115e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,7 +100,7 @@ impl Billboard { /// Billboard::default().eprint("Hello, World!\nNew lines can be created with the newline separator :)."); /// ``` pub fn eprint(&self, content: impl Display) { - println!("{}", self.enclose(content)); + eprintln!("{}", self.enclose(content)); } /// Get your content in a `Billboard` as a `String`.