summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:29:27 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:29:27 +0100
commit938096dc85715915515e3749e03fdcad4cb98e1b (patch)
treefc62490a13d2fbb7698b68aa9741ba89cdd617a2
parent1e0191be5baa1f23332546f77eddd1b4a1513e41 (diff)
downloadnitrokey-rs-938096dc85715915515e3749e03fdcad4cb98e1b.tar.gz
nitrokey-rs-938096dc85715915515e3749e03fdcad4cb98e1b.tar.bz2
Remove redundant extern crate declarations
With Rust edition 2018, it is no longer necessary to declare dependencies in the code using `extern crate`. Therefore, this patch removes these declarations and replaces them with `use` declarations if necessary.
-rw-r--r--src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aab717b..2df704e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,10 +91,6 @@
unused,
)]
-extern crate libc;
-extern crate nitrokey_sys;
-extern crate rand;
-
mod auth;
mod config;
mod device;
@@ -104,6 +100,8 @@ mod pws;
mod tests;
mod util;
+use nitrokey_sys;
+
pub use crate::auth::{Admin, Authenticate, User};
pub use crate::config::Config;
pub use crate::device::{connect, Device, DeviceWrapper, Pro, Storage, StorageStatus, VolumeStatus};