Skip to content

Commit

Permalink
Revert "Deprecate Target::Pipe since it is broken"
Browse files Browse the repository at this point in the history
This reverts commit 26d4a47.
  • Loading branch information
niklas authored and jplatte committed Nov 7, 2022
1 parent 4a10645 commit 9edf205
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/fmt/writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ pub enum Target {
/// Logs will be sent to standard error.
Stderr,
/// Logs will be sent to a custom pipe.
#[deprecated = "\
This functionality is [broken](https://github.com/env-logger-rs/env_logger/issues/208) \
and nobody is working on fixing it\
"]
Pipe(Box<dyn io::Write + Send + 'static>),
}

Expand All @@ -41,7 +37,6 @@ impl fmt::Debug for Target {
match self {
Self::Stdout => "stdout",
Self::Stderr => "stderr",
#[allow(deprecated)]
Self::Pipe(_) => "pipe",
}
)
Expand All @@ -65,7 +60,6 @@ impl From<Target> for WritableTarget {
match target {
Target::Stdout => Self::Stdout,
Target::Stderr => Self::Stderr,
#[allow(deprecated)]
Target::Pipe(pipe) => Self::Pipe(Box::new(Mutex::new(pipe))),
}
}
Expand Down

0 comments on commit 9edf205

Please sign in to comment.