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 @@ -23,14 +23,14 @@ pub mod terminalsource;
23
23
/// Allows concrete types for the currentprocess abstraction.
24
24
#[ derive( Clone , Debug ) ]
25
25
pub enum Process {
26
- Os ( OSProcess ) ,
26
+ Os ( OsProcess ) ,
27
27
#[ cfg( feature = "test" ) ]
28
28
Test ( TestProcess ) ,
29
29
}
30
30
31
31
impl Process {
32
32
pub fn os ( ) -> Self {
33
- Self :: Os ( OSProcess :: new ( ) )
33
+ Self :: Os ( OsProcess :: new ( ) )
34
34
}
35
35
36
36
pub fn name ( & self ) -> Option < String > {
@@ -210,23 +210,23 @@ thread_local! {
210
210
// ----------- real process -----------------
211
211
212
212
#[ derive( Clone , Debug ) ]
213
- pub struct OSProcess {
213
+ pub struct OsProcess {
214
214
pub ( self ) stderr_is_a_tty : bool ,
215
215
pub ( self ) stdout_is_a_tty : bool ,
216
216
}
217
217
218
- impl OSProcess {
218
+ impl OsProcess {
219
219
pub fn new ( ) -> Self {
220
- OSProcess {
220
+ Self {
221
221
stderr_is_a_tty : io:: stderr ( ) . is_terminal ( ) ,
222
222
stdout_is_a_tty : io:: stdout ( ) . is_terminal ( ) ,
223
223
}
224
224
}
225
225
}
226
226
227
- impl Default for OSProcess {
227
+ impl Default for OsProcess {
228
228
fn default ( ) -> Self {
229
- OSProcess :: new ( )
229
+ Self :: new ( )
230
230
}
231
231
}
232
232
You can’t perform that action at this time.
0 commit comments