From e133b8b708c9dc3f340c79dee64e408a08deb360 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 9 Apr 2017 14:11:27 -0700 Subject: [PATCH] Fix unused import on windows --- test_suite/tests/test_ser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_suite/tests/test_ser.rs b/test_suite/tests/test_ser.rs index 3c5b4385..a01af687 100644 --- a/test_suite/tests/test_ser.rs +++ b/test_suite/tests/test_ser.rs @@ -4,10 +4,12 @@ extern crate serde_derive; use std::collections::{BTreeMap, HashMap, HashSet}; use std::net; use std::path::{Path, PathBuf}; -use std::str; use std::time::Duration; use std::ffi::CString; +#[cfg(unix)] +use std::str; + extern crate serde; extern crate serde_test;