Skip to content

Commit 4458947

Browse files
committed
Rename OSProcess to OsProcess
1 parent ef95185 commit 4458947

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/currentprocess/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ pub mod terminalsource;
2323
/// Allows concrete types for the currentprocess abstraction.
2424
#[derive(Clone, Debug)]
2525
pub enum Process {
26-
Os(OSProcess),
26+
Os(OsProcess),
2727
#[cfg(feature = "test")]
2828
Test(TestProcess),
2929
}
3030

3131
impl 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

0 commit comments

Comments
 (0)