From 89ab16e73feb428ea960bcc5ee95e2e168a79f0d Mon Sep 17 00:00:00 2001 From: ChristianVisintin Date: Fri, 27 Nov 2020 16:37:20 +0100 Subject: [PATCH] windows cfg --- src/host/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/host/mod.rs b/src/host/mod.rs index e48d3ca..a7fd880 100644 --- a/src/host/mod.rs +++ b/src/host/mod.rs @@ -434,7 +434,9 @@ impl Localhost { mod tests { use super::*; + #[cfg(any(unix, macos, linux))] use std::io::Write; + #[cfg(any(unix, macos, linux))] use std::fs::File; #[cfg(any(unix, macos, linux))] @@ -690,6 +692,7 @@ mod tests { tmpfile } + #[cfg(any(unix, macos, linux))] fn get_filename(entry: &FsEntry) -> String { match entry { FsEntry::Directory(d) => d.name.clone(),