Skip to content

Commit

Permalink
fix(currentprocess/filesource): address some unused_imports warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jun 20, 2024
1 parent 6e1533d commit 9b93078
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/currentprocess/filesource.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::io::{self, BufRead, Read, Result, Write};
use std::io::{self, BufRead, Read, Write};

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

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

fn flush(&mut self) -> Result<()> {
fn flush(&mut self) -> io::Result<()> {
Ok(())
}
}
Expand Down Expand Up @@ -179,11 +179,11 @@ mod test_support {
}

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

fn flush(&mut self) -> Result<()> {
fn flush(&mut self) -> io::Result<()> {
Ok(())
}
}
Expand Down

0 comments on commit 9b93078

Please sign in to comment.