Skip to content

Commit 23a9882

Browse files
committed
Merge #694
694: Remove workaround for `pub extern crate` r=Susurrus On semi-recent Rust versions (I think 1.8+) this now works properly. Closes #655
2 parents 7574f06 + 39f3372 commit 23a9882

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 errno::Errno;
3529

0 commit comments

Comments
 (0)