summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cuddeback <david.cuddeback@gmail.com>2017-11-19 17:29:49 -0700
committerDavid Cuddeback <david.cuddeback@gmail.com>2017-11-19 17:29:49 -0700
commitaf14580e2cd669e54c6b52e0c8442414c4b74e32 (patch)
treee9cd9310283ade67d04372cd64339cffa4a9b6a4
parente4044187c9959d60a6ac7cbae8df7f26b699e02d (diff)
downloadtermios-rs-af14580e2cd669e54c6b52e0c8442414c4b74e32.zip
fix unused extern crate warning
-rw-r--r--src/ffi.rs2
-rwxr-xr-xsrc/os/dragonfly.rs2
-rwxr-xr-xsrc/os/freebsd.rs2
-rw-r--r--src/os/linux.rs2
-rw-r--r--src/os/macos.rs2
-rwxr-xr-xsrc/os/openbsd.rs2
6 files changed, 0 insertions, 12 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 3c36b57..89e2084 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -1,7 +1,5 @@
//! Unsafe FFI bindings.
-extern crate libc;
-
use libc::{c_int,pid_t};
#[link(name = "c")]
diff --git a/src/os/dragonfly.rs b/src/os/dragonfly.rs
index 601f75e..ad51ee2 100755
--- a/src/os/dragonfly.rs
+++ b/src/os/dragonfly.rs
@@ -1,7 +1,5 @@
#![allow(non_camel_case_types)]
-extern crate libc;
-
use libc::{c_int,c_uint,c_uchar};
pub type cc_t = c_uchar;
diff --git a/src/os/freebsd.rs b/src/os/freebsd.rs
index f4000be..9752c4a 100755
--- a/src/os/freebsd.rs
+++ b/src/os/freebsd.rs
@@ -1,7 +1,5 @@
#![allow(non_camel_case_types)]
-extern crate libc;
-
use libc::{c_int,c_uint,c_uchar};
pub type cc_t = c_uchar;
diff --git a/src/os/linux.rs b/src/os/linux.rs
index 5e535b2..c4d91c4 100644
--- a/src/os/linux.rs
+++ b/src/os/linux.rs
@@ -1,7 +1,5 @@
#![allow(non_camel_case_types)]
-extern crate libc;
-
use libc::{c_int,c_uint,c_uchar};
pub type cc_t = c_uchar;
diff --git a/src/os/macos.rs b/src/os/macos.rs
index c4de577..a00c978 100644
--- a/src/os/macos.rs
+++ b/src/os/macos.rs
@@ -1,7 +1,5 @@
#![allow(non_camel_case_types)]
-extern crate libc;
-
use libc::{c_int,c_uchar,c_ulong};
pub type tcflag_t = c_ulong;
diff --git a/src/os/openbsd.rs b/src/os/openbsd.rs
index 12ec0fd..68b3707 100755
--- a/src/os/openbsd.rs
+++ b/src/os/openbsd.rs
@@ -1,7 +1,5 @@
#![allow(non_camel_case_types)]
-extern crate libc;
-
use libc::{c_int,c_uint,c_uchar};
pub type cc_t = c_uchar;