From 9226ff10b685d87ba68e7ff4283c53703c8f12fe Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 28 Feb 2025 16:10:26 +0100 Subject: [PATCH] find: fix "unused import" warning on Windows --- src/find/matchers/fs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/find/matchers/fs.rs b/src/find/matchers/fs.rs index 1834b99..ee53c36 100644 --- a/src/find/matchers/fs.rs +++ b/src/find/matchers/fs.rs @@ -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>) -> UResult { use std::os::unix::fs::MetadataExt;