From cc8522a2db080d6f2c3fb617db4f872e6f2137c4 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 12 Sep 2021 23:14:34 +0200 Subject: [PATCH] Fixed a warning on freebdsd: warning: unused import: `std::os::unix::fs::PermissionsExt` --- tests/by-util/test_cp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index f126517fe..e86f35833 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -9,7 +9,7 @@ use std::os::unix::fs; #[cfg(unix)] use std::os::unix::fs::symlink as symlink_file; -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "freebsd")))] use std::os::unix::fs::PermissionsExt; #[cfg(windows)] use std::os::windows::fs::symlink_file;