From 62dffc3250ce1c12077586146ddb6106679b30ab Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 8 Jan 2024 17:14:33 +0100 Subject: [PATCH] ln: fix "unused import" warning on Android --- tests/by-util/test_ln.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/by-util/test_ln.rs b/tests/by-util/test_ln.rs index 2501e9d36..b315630ce 100644 --- a/tests/by-util/test_ln.rs +++ b/tests/by-util/test_ln.rs @@ -3,8 +3,6 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. use crate::common::util::TestScenario; -#[cfg(unix)] -use std::os::unix::fs::MetadataExt; use std::path::PathBuf; #[test] @@ -752,6 +750,7 @@ fn test_ln_seen_file() { assert!(at.plus("a").join("f").exists()); #[cfg(unix)] { + use std::os::unix::fs::MetadataExt; // Check inode numbers let inode_a_f = at.plus("a").join("f").metadata().unwrap().ino(); let inode_b_f = at.plus("b").join("f").metadata().unwrap().ino();