aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:29:08 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:29:08 +0100
commitb552a92bcc6ffd59b5b780b12cab4a25aa5812d2 (patch)
treee0d9c4fb17c14aba407d6fb165dda0922d4bd7c9 /src/auth.rs
parent048d4fa5529bf33e21f11873792cdacfcaf7793f (diff)
downloadnitrokey-rs-b552a92bcc6ffd59b5b780b12cab4a25aa5812d2.tar.gz
nitrokey-rs-b552a92bcc6ffd59b5b780b12cab4a25aa5812d2.tar.bz2
Use the crate:: path qualifier for modules
This patch changes use declarations for modules within this crate to use the crate:: path qualifier. This will be mandatory in Rust edition 2018.
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 0918222..ef39777 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -1,10 +1,12 @@
-use config::{Config, RawConfig};
-use device::{Device, DeviceWrapper, Pro, Storage};
-use nitrokey_sys;
-use otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData, RawOtpSlotData};
use std::ops::Deref;
use std::os::raw::c_int;
-use util::{generate_password, get_command_result, get_cstring, result_from_string, CommandError};
+
+use nitrokey_sys;
+
+use crate::config::{Config, RawConfig};
+use crate::device::{Device, DeviceWrapper, Pro, Storage};
+use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData, RawOtpSlotData};
+use crate::util::{generate_password, get_command_result, get_cstring, result_from_string, CommandError};
static TEMPORARY_PASSWORD_LENGTH: usize = 25;