summaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-05-02 10:25:34 -0600
committerAlan Somers <asomers@gmail.com>2020-05-02 10:25:34 -0600
commit92c5cfe8d39b1354757a4429b18f366f72a27619 (patch)
treecd6f83a4e8785c7dc101be196b6a5404cfcf5be8 /test/test.rs
parent609d4296e292121929a2e82c6856d7d42fb6dedb (diff)
downloadnix-92c5cfe8d39b1354757a4429b18f366f72a27619.zip
Fix an "unused macro" warning on non-Linux platforms
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test.rs b/test/test.rs
index 709ac6d8..0efe9bd6 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -102,7 +102,7 @@ cfg_if! {
}
cfg_if! {
- if #[cfg(any(target_os = "android", target_os = "linux"))] {
+ if #[cfg(target_os = "linux")] {
macro_rules! require_kernel_version {
($name:expr, $version_requirement:expr) => {
use ::std::io::Write;
@@ -130,10 +130,6 @@ cfg_if! {
}
}
}
- } else {
- macro_rules! require_kernel_version {
- ($name:expr) => {}
- }
}
}