mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
ln: fix "unused import" warning on Android
This commit is contained in:
parent
8e83b347c6
commit
62dffc3250
1 changed files with 1 additions and 2 deletions
|
@ -3,8 +3,6 @@
|
||||||
// For the full copyright and license information, please view the LICENSE
|
// For the full copyright and license information, please view the LICENSE
|
||||||
// file that was distributed with this source code.
|
// file that was distributed with this source code.
|
||||||
use crate::common::util::TestScenario;
|
use crate::common::util::TestScenario;
|
||||||
#[cfg(unix)]
|
|
||||||
use std::os::unix::fs::MetadataExt;
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -752,6 +750,7 @@ fn test_ln_seen_file() {
|
||||||
assert!(at.plus("a").join("f").exists());
|
assert!(at.plus("a").join("f").exists());
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
|
use std::os::unix::fs::MetadataExt;
|
||||||
// Check inode numbers
|
// Check inode numbers
|
||||||
let inode_a_f = at.plus("a").join("f").metadata().unwrap().ino();
|
let inode_a_f = at.plus("a").join("f").metadata().unwrap().ino();
|
||||||
let inode_b_f = at.plus("b").join("f").metadata().unwrap().ino();
|
let inode_b_f = at.plus("b").join("f").metadata().unwrap().ino();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue