summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPhilipp Keller <philipp.keller@gmail.com>2016-09-16 07:14:29 +0200
committerPhilipp Keller <philipp.keller@gmail.com>2016-09-16 07:14:29 +0200
commit631a27a545906f739e50393509e71fb847740c3a (patch)
tree1d3279093084c3f2b650bb3ff8b88c2df9c2d69c /src/lib.rs
parent23a7ea64938cc73d476e42b80a243fefbe7111b2 (diff)
parent7c0570d3ad3c8e5fdd45c7de745771a6be054c3c (diff)
downloadnix-631a27a545906f739e50393509e71fb847740c3a.zip
made it running with rust 1.2, added documentation to mkstemp
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e746c6b2..8dbf9fe0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,7 @@
// latest bitflags triggers a rustc bug with cross-crate macro expansions causing dead_code
// warnings even though the macro expands into something with allow(dead_code)
#![allow(dead_code)]
-#![deny(warnings)]
+#![cfg_attr(test, deny(warnings))]
#[macro_use]
extern crate bitflags;
@@ -40,7 +40,7 @@ pub mod fcntl;
#[cfg(any(target_os = "linux", target_os = "android"))]
pub mod mount;
-#[cfg(any(target_os = "linux"))]
+#[cfg(target_os = "linux")]
pub mod mqueue;
#[cfg(any(target_os = "linux", target_os = "macos"))]