Skip to content

Commit c5cbca6

Browse files
committed
test: fix windows
1 parent 22819ec commit c5cbca6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/cli_errors.rs

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

66
use command_extra::CommandExtra;
7+
use pipe_trait::Pipe;
8+
use pretty_assertions::assert_eq;
9+
use std::process::{Command, Output, Stdio};
10+
use text_block_macros::text_block;
11+
12+
#[cfg(unix)]
713
use maplit::btreeset;
14+
#[cfg(unix)]
815
use parallel_disk_usage::{
916
bytes_format::BytesFormat,
1017
data_tree::DataTree,
@@ -14,14 +21,8 @@ use parallel_disk_usage::{
1421
reporter::{ErrorOnlyReporter, ErrorReport},
1522
visualizer::{BarAlignment, ColumnWidthDistribution, Direction, Visualizer},
1623
};
17-
use pipe_trait::Pipe;
18-
use pretty_assertions::assert_eq;
19-
use std::{
20-
collections::BTreeSet,
21-
path::Path,
22-
process::{Command, Output, Stdio},
23-
};
24-
use text_block_macros::text_block;
24+
#[cfg(unix)]
25+
use std::{collections::BTreeSet, path::Path};
2526

2627
fn stdio(command: Command) -> Command {
2728
command

0 commit comments

Comments
 (0)