diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:29:27 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:29:27 +0100 |
commit | 938096dc85715915515e3749e03fdcad4cb98e1b (patch) | |
tree | fc62490a13d2fbb7698b68aa9741ba89cdd617a2 /src | |
parent | 1e0191be5baa1f23332546f77eddd1b4a1513e41 (diff) | |
download | nitrokey-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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}; |