Skip to content

Commit 39f3372

Browse files
Remove workaround for pub extern crate
On semi-recent Rust versions (I think 1.8+) this now works properly.
1 parent f8406b8 commit 39f3372

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ extern crate nix_test as nixtest;
2323

2424
#[macro_use] mod macros;
2525

26-
// In rust 1.8+ this should be `pub extern crate libc` but prior
27-
// to https://github.com/rust-lang/rust/issues/26775 being resolved
28-
// it is necessary to get a little creative.
29-
pub mod libc {
30-
extern crate libc;
31-
pub use self::libc::*;
32-
}
26+
pub extern crate libc;
3327

3428
pub use libc::{c_int, c_void};
3529
pub use errno::Errno;

0 commit comments

Comments
 (0)