From a21ddfeefc5fc953c8069cf6b53458c58300d4a9 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Thu, 29 Oct 2020 18:03:00 -0700 Subject: [PATCH] fix use cfg --- zebra-test/src/command.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index 8280efe4e..5eac79146 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -4,14 +4,12 @@ use color_eyre::{ }; use tracing::instrument; +#[cfg(unix)] +use std::os::unix::process::ExitStatusExt; use std::{convert::Infallible as NoDir, io::BufRead}; use std::{ fmt::Write as _, - io::{BufReader, Lines}, -}; -#[cfg(unix)] -use std::{io::Read, os::unix::process::ExitStatusExt}; -use std::{ + io::{BufReader, Lines, Read}, path::Path, process::{Child, ChildStdout, Command, ExitStatus, Output, Stdio}, time::{Duration, Instant},