diff --git a/CHANGELOG.md b/CHANGELOG.md index e3f20a2..c6b4ef7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - ReleaseDate +## [0.11.1] - 2024-01-27 + +### Fixes + +- Allow styling with `Target::Pipe` + ## [0.11.0] - 2024-01-19 ### Breaking Change @@ -31,7 +37,6 @@ MSRV changed to 1.71 ### Fixes - Print colors when `is_test(true)` -- Allow styling with `Target::Pipe` ## [0.10.2] - 2024-01-18 @@ -87,7 +92,8 @@ To open room for changing dependencies: - Added a method to print the module instead of the target -[Unreleased]: https://github.com/rust-cli/env_logger/compare/v0.11.0...HEAD +[Unreleased]: https://github.com/rust-cli/env_logger/compare/v0.11.1...HEAD +[0.11.1]: https://github.com/rust-cli/env_logger/compare/v0.11.0...v0.11.1 [0.11.0]: https://github.com/rust-cli/env_logger/compare/v0.10.2...v0.11.0 [0.10.2]: https://github.com/rust-cli/env_logger/compare/v0.10.1...v0.10.2 [0.10.1]: https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.10.1 diff --git a/Cargo.lock b/Cargo.lock index 204d2c4..bb0de81 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.0" +version = "0.11.1" dependencies = [ "anstream", "anstyle", diff --git a/Cargo.toml b/Cargo.toml index 224c665..97ffdd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ include = [ [package] name = "env_logger" -version = "0.11.0" +version = "0.11.1" description = """ A logging implementation for `log` which is configured via an environment variable. diff --git a/src/fmt/writer/buffer.rs b/src/fmt/writer/buffer.rs index a7ea25b..b720a98 100644 --- a/src/fmt/writer/buffer.rs +++ b/src/fmt/writer/buffer.rs @@ -31,10 +31,13 @@ impl BufferWriter { } } - pub(in crate::fmt::writer) fn pipe(pipe: Box>) -> Self { + pub(in crate::fmt::writer) fn pipe( + pipe: Box>, + write_style: WriteStyle, + ) -> Self { BufferWriter { target: WritableTarget::Pipe(pipe), - write_style: WriteStyle::Never, + write_style, } } diff --git a/src/fmt/writer/mod.rs b/src/fmt/writer/mod.rs index dbcf45b..688fda1 100644 --- a/src/fmt/writer/mod.rs +++ b/src/fmt/writer/mod.rs @@ -138,7 +138,7 @@ impl Builder { let writer = match mem::take(&mut self.target) { Target::Stdout => BufferWriter::stdout(self.is_test, color_choice), Target::Stderr => BufferWriter::stderr(self.is_test, color_choice), - Target::Pipe(pipe) => BufferWriter::pipe(Box::new(Mutex::new(pipe))), + Target::Pipe(pipe) => BufferWriter::pipe(Box::new(Mutex::new(pipe)), color_choice), }; Writer { inner: writer } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy