File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ pub enum Process {
32
32
33
33
impl Process {
34
34
pub fn os ( ) -> Self {
35
- Self :: Os ( OsProcess :: new ( ) )
35
+ Self :: Os ( OsProcess {
36
+ stderr_is_a_tty : stderr_isatty ( ) ,
37
+ stdout_is_a_tty : stdout_isatty ( ) ,
38
+ } )
36
39
}
37
40
38
41
pub fn name ( & self ) -> Option < String > {
@@ -217,21 +220,6 @@ pub struct OsProcess {
217
220
pub ( self ) stdout_is_a_tty : bool ,
218
221
}
219
222
220
- impl OsProcess {
221
- pub fn new ( ) -> Self {
222
- OsProcess {
223
- stderr_is_a_tty : stderr_isatty ( ) ,
224
- stdout_is_a_tty : stdout_isatty ( ) ,
225
- }
226
- }
227
- }
228
-
229
- impl Default for OsProcess {
230
- fn default ( ) -> Self {
231
- OsProcess :: new ( )
232
- }
233
- }
234
-
235
223
// ------------ test process ----------------
236
224
#[ cfg( feature = "test" ) ]
237
225
#[ derive( Clone , Debug , Default ) ]
You can’t perform that action at this time.
0 commit comments