aboutsummaryrefslogtreecommitdiff
path: root/src/device.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-17 01:53:08 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-20 20:57:07 +0000
commitd0f63513bb935d3d931c86a1ab7b68d6ed44bf27 (patch)
tree2f5918913ff041f84481d368c898cd2620470295 /src/device.rs
parent5da2735cfb8ccfaea1ebdee850ddd9fbd0bfb003 (diff)
downloadnitrokey-rs-d0f63513bb935d3d931c86a1ab7b68d6ed44bf27.tar.gz
nitrokey-rs-d0f63513bb935d3d931c86a1ab7b68d6ed44bf27.tar.bz2
Move util::CommandError to the new error module
This prepares the refactoring of util::CommandError into multiple enums.
Diffstat (limited to 'src/device.rs')
-rw-r--r--src/device.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/device.rs b/src/device.rs
index d794e1b..603a986 100644
--- a/src/device.rs
+++ b/src/device.rs
@@ -5,11 +5,10 @@ use nitrokey_sys;
use crate::auth::Authenticate;
use crate::config::{Config, RawConfig};
+use crate::error::CommandError;
use crate::otp::GenerateOtp;
use crate::pws::GetPasswordSafe;
-use crate::util::{
- get_command_result, get_cstring, get_last_error, result_from_string, CommandError,
-};
+use crate::util::{get_command_result, get_cstring, get_last_error, result_from_string};
/// Available Nitrokey models.
#[derive(Clone, Copy, Debug, PartialEq)]