aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-07-08 12:18:41 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-07-08 23:02:34 +0200
commit9f80512a11926c5ec3f869ad5e220b3b350eec9a (patch)
treefc866d63d183d881234e5aa446458e8217b49c9a
parente313998a1c654573add92c8a71a0c3a0cf22ece9 (diff)
downloadnitrokey-rs-9f80512a11926c5ec3f869ad5e220b3b350eec9a.tar.gz
nitrokey-rs-9f80512a11926c5ec3f869ad5e220b3b350eec9a.tar.bz2
Remove unused imports
-rw-r--r--src/auth.rs2
-rw-r--r--src/device/mod.rs2
-rw-r--r--src/device/pro.rs2
-rw-r--r--src/device/storage.rs2
-rw-r--r--src/lib.rs2
-rw-r--r--src/otp.rs2
-rw-r--r--src/pws.rs3
7 files changed, 0 insertions, 15 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 6748ca1..fe2f7f2 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -8,8 +8,6 @@ use std::ops;
use std::os::raw::c_char;
use std::os::raw::c_int;
-use nitrokey_sys;
-
use crate::config::{Config, RawConfig};
use crate::device::{Device, DeviceWrapper, Pro, Storage};
use crate::error::Error;
diff --git a/src/device/mod.rs b/src/device/mod.rs
index 067fdf6..5082537 100644
--- a/src/device/mod.rs
+++ b/src/device/mod.rs
@@ -10,8 +10,6 @@ use std::ffi;
use std::fmt;
use std::str;
-use nitrokey_sys;
-
use crate::auth::Authenticate;
use crate::config::{Config, RawConfig};
use crate::error::{CommunicationError, Error, LibraryError};
diff --git a/src/device/pro.rs b/src/device/pro.rs
index 591b730..0d5443e 100644
--- a/src/device/pro.rs
+++ b/src/device/pro.rs
@@ -1,8 +1,6 @@
// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT
-use nitrokey_sys;
-
use crate::device::{Device, Model, Status};
use crate::error::Error;
use crate::otp::GenerateOtp;
diff --git a/src/device/storage.rs b/src/device/storage.rs
index 5669a91..a18d94f 100644
--- a/src/device/storage.rs
+++ b/src/device/storage.rs
@@ -5,8 +5,6 @@ use std::convert::TryFrom as _;
use std::fmt;
use std::ops;
-use nitrokey_sys;
-
use crate::device::{Device, FirmwareVersion, Model, SerialNumber, Status};
use crate::error::{CommandError, Error};
use crate::otp::GenerateOtp;
diff --git a/src/lib.rs b/src/lib.rs
index 92247d7..3fa3ae3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -133,8 +133,6 @@ use std::marker;
use std::ptr::NonNull;
use std::sync;
-use nitrokey_sys;
-
pub use crate::auth::{Admin, Authenticate, User};
pub use crate::config::Config;
pub use crate::device::{
diff --git a/src/otp.rs b/src/otp.rs
index 4667aff..1d5f507 100644
--- a/src/otp.rs
+++ b/src/otp.rs
@@ -3,8 +3,6 @@
use std::ffi::CString;
-use nitrokey_sys;
-
use crate::error::Error;
use crate::util::{get_command_result, get_cstring, result_from_string};
diff --git a/src/pws.rs b/src/pws.rs
index 3398deb..93294c5 100644
--- a/src/pws.rs
+++ b/src/pws.rs
@@ -1,9 +1,6 @@
// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT
-use libc;
-use nitrokey_sys;
-
use crate::device::{Device, DeviceWrapper, Pro, Storage};
use crate::error::{CommandError, Error};
use crate::util::{get_command_result, get_cstring, get_last_error, result_from_string};