diff options
author | Jonas Schievink <jonasschievink@gmail.com> | 2017-07-20 17:57:20 +0200 |
---|---|---|
committer | Jonas Schievink <jonasschievink@gmail.com> | 2017-07-20 17:57:20 +0200 |
commit | 39f3372a9e3f7a57a16938aaa15c97d061d5feee (patch) | |
tree | 6fc1895c399742eaf1377f2c9ae7a029ee331b54 /src/lib.rs | |
parent | f8406b8d6244eec0d0870d6fbdfef1671a8ed8ae (diff) | |
download | nix-39f3372a9e3f7a57a16938aaa15c97d061d5feee.zip |
Remove workaround for `pub extern crate`
On semi-recent Rust versions (I think 1.8+) this now works properly.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 libc::{c_int, c_void}; pub use errno::Errno; |