Skip to content

Commit

Permalink
Fixed platform specific compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
aert committed Jul 12, 2019
1 parent d49bce8 commit 84cba5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ use std::path::Path;
#[cfg(test)]
mod tests;

#[cfg(windows)]
#[cfg(target_os = "windows")]
#[path = "windows.rs"]
mod platform;

#[cfg(linux)]
#[cfg(target_os = "linux")]
#[path = "linux.rs"]
mod platform;

#[cfg(macos)]
#[cfg(target_os = "macos")]
#[path = "macos.rs"]
mod platform;

Expand Down
7 changes: 5 additions & 2 deletions src/linux.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

use std::path::Path;

use crate::Error;

pub fn is_implemented() -> bool {
false
true
}

pub fn platform_remove<T: AsRef<Path>>(path: T) -> Result<(), Error> {
unimplemented!();
}

4 changes: 4 additions & 0 deletions src/macos.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

use std::path::Path;

use crate::Error;

pub fn is_implemented() -> bool {
false
}
Expand Down

0 comments on commit 84cba5b

Please sign in to comment.