Skip to content

Commit

Permalink
Change cfg(not(any(bad)) to cfg(any(good))
Browse files Browse the repository at this point in the history
  • Loading branch information
hybras committed Feb 19, 2021
1 parent cb5bbd3 commit 204f0ca
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ pub use windows::{that, with};
#[cfg(target_os = "macos")]
pub use macos::{that, with};

#[cfg(not(any(target_os = "windows", target_os = "macos")))]
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris"
))]
pub use unix::{that, with};

/// Convenience function for opening the passed path in a new thread.
Expand Down Expand Up @@ -178,7 +185,14 @@ mod macos {
}
}

#[cfg(not(any(target_os = "windows", target_os = "macos")))]
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris"
))]
mod unix {

use std::{
Expand Down

0 comments on commit 204f0ca

Please sign in to comment.