Skip to content

Commit 9edf205

Browse files
niklasjplatte
authored andcommitted
Revert "Deprecate Target::Pipe since it is broken"
This reverts commit 26d4a47.
1 parent 4a10645 commit 9edf205

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/fmt/writer/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ pub enum Target {
2020
/// Logs will be sent to standard error.
2121
Stderr,
2222
/// Logs will be sent to a custom pipe.
23-
#[deprecated = "\
24-
This functionality is [broken](https://github.com/env-logger-rs/env_logger/issues/208) \
25-
and nobody is working on fixing it\
26-
"]
2723
Pipe(Box<dyn io::Write + Send + 'static>),
2824
}
2925

@@ -41,7 +37,6 @@ impl fmt::Debug for Target {
4137
match self {
4238
Self::Stdout => "stdout",
4339
Self::Stderr => "stderr",
44-
#[allow(deprecated)]
4540
Self::Pipe(_) => "pipe",
4641
}
4742
)
@@ -65,7 +60,6 @@ impl From<Target> for WritableTarget {
6560
match target {
6661
Target::Stdout => Self::Stdout,
6762
Target::Stderr => Self::Stderr,
68-
#[allow(deprecated)]
6963
Target::Pipe(pipe) => Self::Pipe(Box::new(Mutex::new(pipe))),
7064
}
7165
}

0 commit comments

Comments
 (0)