Skip to content

Commit

Permalink
Merge pull request #3897 from eduardosm/extern-crate
Browse files Browse the repository at this point in the history
Remove unneeded `extern crate`s and imports
  • Loading branch information
tgross35 authored Sep 5, 2024
2 parents 72c4000 + ba1b27f commit 2387429
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::env;
use std::ffi::{OsStr, OsString};
use std::process::{Command, Output};
use std::str;

Expand Down
1 change: 0 additions & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![deny(warnings)]

extern crate cc;
extern crate ctest2 as ctest;

use std::fs::File;
Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/cmsg.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! Compare libc's CMSG(3) family of functions against the actual C macros, for
//! various inputs.
extern crate libc;

#[cfg(unix)]
mod t {

Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/errqueue.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Compare libc's SO_EE_OFFENDER function against the actual C macro
extern crate libc;

#[cfg(any(target_os = "linux", target_os = "android"))]
mod t {
use libc::{self, sock_extended_err, sockaddr};
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_elf.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(target_os = "linux")]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_fcntl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_if_arp.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_ipv6.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(target_os = "linux")]
Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/linux_kernel_version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Compare libc's KERNEL_VERSION macro against a specific kernel version.
extern crate libc;

#[cfg(
target_os = "linux",
)]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_strerror_r.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/linux_termios.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(bad_style, improper_ctypes, unused, deprecated)]

extern crate libc;
use libc::*;

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down
1 change: 0 additions & 1 deletion libc-test/test/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![allow(bad_style, improper_ctypes, deprecated)]
extern crate libc;

use libc::*;

Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/makedev.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! Compare libc's makdev function against the actual C macros, for various
//! inputs.
extern crate libc;

#[cfg(any(
target_os = "android",
target_os = "dragonfly",
Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/semver.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![allow(unused_imports)]
#![allow(deprecated)]

extern crate libc;

// Generated in `build.rs`.
include!(concat!(env!("OUT_DIR"), "/semver.rs"));

Expand Down
2 changes: 0 additions & 2 deletions libc-test/test/sigrt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Compare libc's SIGRTMAX and SIGRTMIN functions against the actual C macros
extern crate libc;

#[cfg(any(
target_os = "linux",
target_os = "l4re",
Expand Down

0 comments on commit 2387429

Please sign in to comment.