diff --git a/crates/ide-run/src/process.rs b/crates/ide-run/src/process.rs index 773c3aa55..b067bb03a 100644 --- a/crates/ide-run/src/process.rs +++ b/crates/ide-run/src/process.rs @@ -1587,11 +1587,13 @@ mod tests { } /// A pipe stand-in that counts the bytes taken from it. + #[cfg(unix)] struct Counted { inner: R, taken: Arc, } + #[cfg(unix)] impl Read for Counted { fn read(&mut self, buf: &mut [u8]) -> std::io::Result { let n = self.inner.read(buf)?;