Merge pull request #498 from cakebaker/find_fix_unused_import_on_windows

find: fix "unused import" warning on Windows
This commit is contained in:
hanbings
2025-03-01 00:12:14 +08:00
committed by GitHub
+2
View File
@@ -3,6 +3,7 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use super::{Matcher, MatcherIO, WalkEntry};
#[cfg(unix)]
use uucore::error::UResult;
/// The latest mapping from dev_id to fs_type, used for saving mount info reads
@@ -30,6 +31,7 @@ use std::{
io::{stderr, Write},
path::Path,
};
#[cfg(unix)]
pub fn get_file_system_type(path: &Path, cache: &RefCell<Option<Cache>>) -> UResult<String> {
use std::os::unix::fs::MetadataExt;