@@ -107,14 +107,6 @@ pub trait Writer: Write + Send + Sync {
107107 fn terminal ( & self ) -> ColorableTerminal ;
108108}
109109
110- // -------------- stdout -------------------------------
111-
112- /// Stand-in for [`std::io::stdout`].
113- #[ enum_dispatch]
114- pub trait StdoutSource {
115- fn stdout ( & self ) -> Box < dyn Writer > ;
116- }
117-
118110// -------------- stderr -------------------------------
119111
120112/// Stand-in for std::io::stderr.
@@ -145,12 +137,6 @@ impl Writer for io::Stdout {
145137 }
146138}
147139
148- impl StdoutSource for super :: OSProcess {
149- fn stdout ( & self ) -> Box < dyn Writer > {
150- Box :: new ( io:: stdout ( ) )
151- }
152- }
153-
154140impl WriterLock for io:: StderrLock < ' _ > { }
155141
156142impl Writer for io:: Stderr {
@@ -200,7 +186,7 @@ pub(super) type TestWriterInner = Arc<Mutex<Vec<u8>>>;
200186/// A thread-safe test file handle that pretends to be e.g. stdout.
201187#[ derive( Clone , Default ) ]
202188#[ cfg( feature = "test" ) ]
203- pub ( super ) struct TestWriter ( TestWriterInner ) ;
189+ pub ( super ) struct TestWriter ( pub ( super ) TestWriterInner ) ;
204190
205191#[ cfg( feature = "test" ) ]
206192impl TestWriter {
@@ -239,13 +225,6 @@ impl Write for TestWriter {
239225 }
240226}
241227
242- #[ cfg( feature = "test" ) ]
243- impl StdoutSource for super :: TestProcess {
244- fn stdout ( & self ) -> Box < dyn Writer > {
245- Box :: new ( TestWriter ( self . stdout . clone ( ) ) )
246- }
247- }
248-
249228#[ cfg( feature = "test" ) ]
250229impl StderrSource for super :: TestProcess {
251230 fn stderr ( & self ) -> Box < dyn Writer > {
0 commit comments