From 2339beae8f82bb30fa81cc3aab7f66e4a06aa8e3 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Khan Date: Sun, 11 Feb 2024 00:23:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20some=20unused=20imports=20?= =?UTF-8?q?for=20non-unix=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/fdo.rs | 2 ++ tests/greet.rs | 5 ++++- tests/multiple_conns.rs | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/fdo.rs b/tests/fdo.rs index 534b03b..0c0d2f0 100644 --- a/tests/fdo.rs +++ b/tests/fdo.rs @@ -1,9 +1,11 @@ +#[cfg(unix)] use std::env::temp_dir; use anyhow::ensure; use busd::bus::Bus; use futures_util::stream::StreamExt; use ntest::timeout; +#[cfg(unix)] use rand::{ distributions::{Alphanumeric, DistString}, thread_rng, diff --git a/tests/greet.rs b/tests/greet.rs index 52c4ab1..0cf4974 100644 --- a/tests/greet.rs +++ b/tests/greet.rs @@ -1,9 +1,12 @@ -use std::{env::temp_dir, time::Duration}; +#[cfg(unix)] +use std::env::temp_dir; +use std::time::Duration; use anyhow::anyhow; use busd::bus::Bus; use futures_util::{pin_mut, stream::StreamExt}; use ntest::timeout; +#[cfg(unix)] use rand::{ distributions::{Alphanumeric, DistString}, thread_rng, diff --git a/tests/multiple_conns.rs b/tests/multiple_conns.rs index a6759a5..dba6d5e 100644 --- a/tests/multiple_conns.rs +++ b/tests/multiple_conns.rs @@ -1,8 +1,10 @@ +#[cfg(unix)] use std::env::temp_dir; use busd::bus::Bus; use futures_util::future::join_all; use ntest::timeout; +#[cfg(unix)] use rand::{ distributions::{Alphanumeric, DistString}, thread_rng,