summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 15:35:23 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 15:35:23 +0800
commit3884ea66d74a0a04beb24e7c12144ac8245d4b95 (patch)
tree6317d6242bbadb27e203b27cc3269f247a6f9548
parent42c541ac1977cef5169981c5996820214da9c937 (diff)
Fix crossdev to support windows (as originally intended)
related to #2
-rw-r--r--src/crossdev.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crossdev.rs b/src/crossdev.rs
index 94c5c67..0f68a09 100644
--- a/src/crossdev.rs
+++ b/src/crossdev.rs
@@ -14,12 +14,12 @@ pub fn is_same_device(device_id: u64, meta: &std::fs::Metadata) -> bool {
meta.dev() == device_id
}
-#[cfg(not(any(unix, windows)))]
+#[cfg(not(unix))]
pub fn is_same_device(device_id: u64, meta: &std::fs::Metadata) -> bool {
true
}
-#[cfg(not(any(unix, windows)))]
+#[cfg(not(unix))]
pub fn init(path: &Path) -> io::Result<u64> {
Ok(0)
}