From 6c6ea2736873ae70a7a4cbaa69d8471f79207a69 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Mon, 3 Sep 2018 17:45:58 -0500 Subject: [PATCH] fix: gate unix-only macros (silences "unused" warnings) --- fs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fs.rs b/fs.rs index 78ccfbe..fdb82ab 100644 --- a/fs.rs +++ b/fs.rs @@ -25,6 +25,7 @@ use std::io::Result as IOResult; use std::path::{Component, Path, PathBuf}; use std::borrow::Cow; +#[cfg(unix)] macro_rules! has { ($mode:expr, $perm:expr) => ( $mode & ($perm as u32) != 0