Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Dec 15, 2023
1 parent 52cd1e3 commit 3aedfba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/lib/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ pub(crate) fn on_test_startup() {
pub(crate) fn is_linux() -> bool {
on_test_startup();

cfg!(target_os = "linux")
if cfg!(target_os = "linux") {
true
} else {
false
}
}

pub(crate) fn is_windows() -> bool {
on_test_startup();

cfg!(windows)
if cfg!(windows) {
true
} else {
false
}
}

pub(crate) fn is_rust_channel(rust_channel: RustChannel) -> bool {
Expand Down

0 comments on commit 3aedfba

Please sign in to comment.