Skip to content

Commit 8d0bcc0

Browse files
committed
process: import instead of qualifying ColorableTerminal
1 parent 490ef98 commit 8d0bcc0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/process.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,25 +149,23 @@ impl Process {
149149
}
150150
}
151151

152-
pub(crate) fn stdout(&self) -> terminal_source::ColorableTerminal {
152+
pub(crate) fn stdout(&self) -> ColorableTerminal {
153153
match self {
154-
Process::OsProcess(_) => terminal_source::ColorableTerminal::stdout(self),
154+
Process::OsProcess(_) => ColorableTerminal::stdout(self),
155155
#[cfg(feature = "test")]
156-
Process::TestProcess(p) => terminal_source::ColorableTerminal::test(
157-
file_source::TestWriter(p.stdout.clone()),
158-
self,
159-
),
156+
Process::TestProcess(p) => {
157+
ColorableTerminal::test(file_source::TestWriter(p.stdout.clone()), self)
158+
}
160159
}
161160
}
162161

163-
pub(crate) fn stderr(&self) -> terminal_source::ColorableTerminal {
162+
pub(crate) fn stderr(&self) -> ColorableTerminal {
164163
match self {
165-
Process::OsProcess(_) => terminal_source::ColorableTerminal::stderr(self),
164+
Process::OsProcess(_) => ColorableTerminal::stderr(self),
166165
#[cfg(feature = "test")]
167-
Process::TestProcess(p) => terminal_source::ColorableTerminal::test(
168-
file_source::TestWriter(p.stderr.clone()),
169-
self,
170-
),
166+
Process::TestProcess(p) => {
167+
ColorableTerminal::test(file_source::TestWriter(p.stderr.clone()), self)
168+
}
171169
}
172170
}
173171

0 commit comments

Comments
 (0)