Skip to content

Commit 9b93078

Browse files
committed
fix(currentprocess/filesource): address some unused_imports warnings
1 parent 6e1533d commit 9b93078

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/currentprocess/filesource.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::io::{self, BufRead, Read, Result, Write};
1+
use std::io::{self, BufRead, Read, Write};
22

33
use super::terminalsource::{ColorableTerminal, StreamSelector};
44
use crate::currentprocess::Process;
@@ -139,11 +139,11 @@ mod test_support {
139139
impl WriterLock for TestWriterLock<'_> {}
140140

141141
impl Write for TestWriterLock<'_> {
142-
fn write(&mut self, buf: &[u8]) -> Result<usize> {
142+
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
143143
self.inner.write(buf)
144144
}
145145

146-
fn flush(&mut self) -> Result<()> {
146+
fn flush(&mut self) -> io::Result<()> {
147147
Ok(())
148148
}
149149
}
@@ -179,11 +179,11 @@ mod test_support {
179179
}
180180

181181
impl Write for TestWriter {
182-
fn write(&mut self, buf: &[u8]) -> Result<usize> {
182+
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
183183
self.lock().write(buf)
184184
}
185185

186-
fn flush(&mut self) -> Result<()> {
186+
fn flush(&mut self) -> io::Result<()> {
187187
Ok(())
188188
}
189189
}

0 commit comments

Comments
 (0)