From b815cf0e58b1828d9456b317761caeabc06497be Mon Sep 17 00:00:00 2001 From: Tanmay Patil Date: Mon, 6 May 2024 20:08:26 +0530 Subject: [PATCH] Make handling stdin directory unix specific --- src/params.rs | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/params.rs b/src/params.rs index c37dcfb..a1ce507 100644 --- a/src/params.rs +++ b/src/params.rs @@ -4,6 +4,7 @@ use std::path::PathBuf; use std::fs::File; use std::io::stdin; +#[cfg(unix)] use std::os::fd::AsFd; use regex::Regex; @@ -185,18 +186,21 @@ pub fn parse_params>(opts: I) -> Result