From 60df14f0a348db751820a1ddbbd2d74f54cde580 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 27 Sep 2017 21:25:50 +0200 Subject: [PATCH] Fix build on Windows --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a4d4157..3bc4742 100644 --- a/src/main.rs +++ b/src/main.rs @@ -124,7 +124,7 @@ fn print_entry(base: &Path, entry: &PathBuf, config: &FdOptions) { }; #[cfg(not(target_family = "unix"))] - let is_executable = |_: &std::path::PathBuf| { false }; + let is_executable = |_: Option<&std::fs::Metadata>| { false }; let stdout = std::io::stdout(); let mut handle = stdout.lock();