Skip to content

Commit

Permalink
Fix crossdev to support windows (as originally intended)
Browse files Browse the repository at this point in the history
related to #2
  • Loading branch information
Byron committed May 19, 2020
1 parent 42c541a commit 3884ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crossdev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 3884ea6

Please sign in to comment.