File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ use crate::utils::tty::{stderr_isatty, stdout_isatty};
25
25
/// Allows concrete types for the currentprocess abstraction.
26
26
#[ derive( Clone , Debug ) ]
27
27
pub enum Process {
28
- Os ( OSProcess ) ,
28
+ Os ( OsProcess ) ,
29
29
#[ cfg( feature = "test" ) ]
30
30
Test ( TestProcess ) ,
31
31
}
32
32
33
33
impl Process {
34
34
pub fn os ( ) -> Self {
35
- Self :: Os ( OSProcess :: new ( ) )
35
+ Self :: Os ( OsProcess :: new ( ) )
36
36
}
37
37
38
38
pub fn name ( & self ) -> Option < String > {
@@ -212,23 +212,23 @@ thread_local! {
212
212
// ----------- real process -----------------
213
213
214
214
#[ derive( Clone , Debug ) ]
215
- pub struct OSProcess {
215
+ pub struct OsProcess {
216
216
pub ( self ) stderr_is_a_tty : bool ,
217
217
pub ( self ) stdout_is_a_tty : bool ,
218
218
}
219
219
220
- impl OSProcess {
220
+ impl OsProcess {
221
221
pub fn new ( ) -> Self {
222
- OSProcess {
222
+ OsProcess {
223
223
stderr_is_a_tty : stderr_isatty ( ) ,
224
224
stdout_is_a_tty : stdout_isatty ( ) ,
225
225
}
226
226
}
227
227
}
228
228
229
- impl Default for OSProcess {
229
+ impl Default for OsProcess {
230
230
fn default ( ) -> Self {
231
- OSProcess :: new ( )
231
+ OsProcess :: new ( )
232
232
}
233
233
}
234
234
You can’t perform that action at this time.
0 commit comments