~ireas/nitrokey-rs

9f80512a11926c5ec3f869ad5e220b3b350eec9a — Robin Krahl 1 year, 3 months ago e313998
Remove unused imports
7 files changed, 0 insertions(+), 15 deletions(-)

M src/auth.rs
M src/device/mod.rs
M src/device/pro.rs
M src/device/storage.rs
M src/lib.rs
M src/otp.rs
M src/pws.rs
M src/auth.rs => src/auth.rs +0 -2
@@ 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;

M src/device/mod.rs => src/device/mod.rs +0 -2
@@ 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};

M src/device/pro.rs => src/device/pro.rs +0 -2
@@ 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;

M src/device/storage.rs => src/device/storage.rs +0 -2
@@ 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;

M src/lib.rs => src/lib.rs +0 -2
@@ 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::{

M src/otp.rs => src/otp.rs +0 -2
@@ 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};


M src/pws.rs => src/pws.rs +0 -3
@@ 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};