Skip to content

Commit

Permalink
remove unstable windows feature
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Mar 6, 2023
1 parent 8ee5372 commit df0e795
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/fs/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,7 @@ impl TryFrom<Metadata> for Inode {
Ok(Self::new(md.ino(), md.dev(), md.nlink()))
}

#[cfg(windows)]
fn try_from(md: Metadata) -> Result<Self, Self::Error> {
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<Self, Self::Error> {
Err(Error {})
}
Expand Down

0 comments on commit df0e795

Please sign in to comment.