From 59c9105c2542f19633eaa8294c2549912d2becca Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 6 Jan 2021 20:09:01 +0100 Subject: [PATCH] Fix clippy warnings in tests on Windows --- tests/integration_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 7ab99bb2..e2bd3339 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -8,7 +8,11 @@ use std::str::from_utf8; use std::time::Duration; const EXAMPLES_DIR: &str = "tests/examples"; + +#[cfg(unix)] const SAFE_CHILD_PROCESS_CREATION_TIME: Duration = Duration::from_millis(100); + +#[cfg(unix)] const CHILD_WAIT_TIMEOUT: Duration = Duration::from_secs(15); fn bat_raw_command() -> Command {