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;
2323/// Allows concrete types for the currentprocess abstraction.
2424#[ derive( Clone , Debug ) ]
2525pub enum Process {
26- Os ( OSProcess ) ,
26+ Os ( OsProcess ) ,
2727 #[ cfg( feature = "test" ) ]
2828 Test ( TestProcess ) ,
2929}
3030
3131impl Process {
3232 pub fn os ( ) -> Self {
33- Self :: Os ( OSProcess :: new ( ) )
33+ Self :: Os ( OsProcess :: new ( ) )
3434 }
3535
3636 pub fn name ( & self ) -> Option < String > {
@@ -210,23 +210,23 @@ thread_local! {
210210// ----------- real process -----------------
211211
212212#[ derive( Clone , Debug ) ]
213- pub struct OSProcess {
213+ pub struct OsProcess {
214214 pub ( self ) stderr_is_a_tty : bool ,
215215 pub ( self ) stdout_is_a_tty : bool ,
216216}
217217
218- impl OSProcess {
218+ impl OsProcess {
219219 pub fn new ( ) -> Self {
220- OSProcess {
220+ Self {
221221 stderr_is_a_tty : io:: stderr ( ) . is_terminal ( ) ,
222222 stdout_is_a_tty : io:: stdout ( ) . is_terminal ( ) ,
223223 }
224224 }
225225}
226226
227- impl Default for OSProcess {
227+ impl Default for OsProcess {
228228 fn default ( ) -> Self {
229- OSProcess :: new ( )
229+ Self :: new ( )
230230 }
231231}
232232
You can’t perform that action at this time.
0 commit comments