Skip to content

Commit ca2daff

Browse files
committed
test: fix windows
1 parent 5d3ebe6 commit ca2daff

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

tests/cli_errors.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ pub mod _utils;
55
pub use _utils::*;
66

77
use command_extra::CommandExtra;
8+
use pipe_trait::Pipe;
9+
use pretty_assertions::assert_eq;
10+
use std::process::{Command, Output, Stdio};
11+
use text_block_macros::text_block;
12+
13+
#[cfg(unix)]
814
use maplit::btreeset;
15+
#[cfg(unix)]
916
use parallel_disk_usage::{
1017
bytes_format::BytesFormat,
1118
data_tree::DataTree,
@@ -16,14 +23,8 @@ use parallel_disk_usage::{
1623
reporter::{ErrorOnlyReporter, ErrorReport},
1724
visualizer::{BarAlignment, ColumnWidthDistribution, Direction, Visualizer},
1825
};
19-
use pipe_trait::Pipe;
20-
use pretty_assertions::assert_eq;
21-
use std::{
22-
collections::BTreeSet,
23-
path::Path,
24-
process::{Command, Output, Stdio},
25-
};
26-
use text_block_macros::text_block;
26+
#[cfg(unix)]
27+
use std::{collections::BTreeSet, path::Path};
2728

2829
fn stdio(command: Command) -> Command {
2930
command

0 commit comments

Comments
 (0)