mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #5812 from cakebaker/ln_fix_unused_import_on_android
ln: fix "unused import" warning on Android
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user