summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-07-25 02:03:52 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-07-25 02:03:52 +0000
commit3f80902b930282b397c6f480f61747e4cbe02eac (patch)
treeebb5c8c481d4ed83bedb5b1cc97a1be416359059 /src/lib.rs
parent7574f06529805fb16aead5256e9831e36aa96d1b (diff)
parent39f3372a9e3f7a57a16938aaa15c97d061d5feee (diff)
downloadnix-3f80902b930282b397c6f480f61747e4cbe02eac.zip
Merge #694
694: Remove workaround for `pub extern crate` r=asomers On semi-recent Rust versions (I think 1.8+) this now works properly. Closes #655
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b53510ba..3518efac 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,13 +23,7 @@ extern crate nix_test as nixtest;
#[macro_use] mod macros;
-// In rust 1.8+ this should be `pub extern crate libc` but prior
-// to https://github.com/rust-lang/rust/issues/26775 being resolved
-// it is necessary to get a little creative.
-pub mod libc {
- extern crate libc;
- pub use self::libc::*;
-}
+pub extern crate libc;
pub use errno::Errno;