From df0e79583b187534f3ed58f75b6ba05851deea0a Mon Sep 17 00:00:00 2001 From: Benjamin Nguyen Date: Mon, 6 Mar 2023 10:02:34 -0800 Subject: [PATCH] remove unstable windows feature --- src/fs/inode.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/fs/inode.rs b/src/fs/inode.rs index 01d1fa73..1acb43cf 100644 --- a/src/fs/inode.rs +++ b/src/fs/inode.rs @@ -46,22 +46,7 @@ impl TryFrom for Inode { Ok(Self::new(md.ino(), md.dev(), md.nlink())) } - #[cfg(windows)] - fn try_from(md: Metadata) -> Result { - use std::os::windows::fs::MetadataExt; - - if let (Some(ino), Some(dev), Some(nlinks)) = ( - md.file_index(), - md.volume_serial_number(), - md.number_of_links(), - ) { - return Ok(Self::new(md, dev, nlink)); - } - - Err(Error {}) - } - - #[cfg(not(any(unix, windows)))] + #[cfg(not(any(unix)))] fn try_from(md: Metadata) -> Result { Err(Error {}) }