diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 00:04:39 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 00:04:39 +0100 |
commit | 62d698db4941c06905cb08bdbe4cc35ad54132d5 (patch) | |
tree | cc06a91b5d24cacb8b0faedc5250793aa122fcab /tests | |
parent | 3d951ab54daea9c362bdae2e0945701955c412e5 (diff) | |
download | nitrokey-rs-62d698db4941c06905cb08bdbe4cc35ad54132d5.tar.gz nitrokey-rs-62d698db4941c06905cb08bdbe4cc35ad54132d5.tar.bz2 |
Fix formatting using to rustfmt
Diffstat (limited to 'tests')
-rw-r--r-- | tests/otp.rs | 4 | ||||
-rw-r--r-- | tests/pws.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/otp.rs b/tests/otp.rs index 03feb48..8e7ae08 100644 --- a/tests/otp.rs +++ b/tests/otp.rs @@ -2,7 +2,9 @@ mod util; use std::ops::Deref; -use nitrokey::{Admin, Authenticate, CommandError, Config, ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; +use nitrokey::{ + Admin, Authenticate, CommandError, Config, ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData, +}; use crate::util::{Target, ADMIN_PASSWORD, USER_PASSWORD}; diff --git a/tests/pws.rs b/tests/pws.rs index 69ad664..875324b 100644 --- a/tests/pws.rs +++ b/tests/pws.rs @@ -22,7 +22,7 @@ fn get_slot_name_direct(slot: u8) -> Result<String, CommandError> { 0 => Err(CommandError::Unknown), other => Err(CommandError::from(other)), } - }, + } false => Ok(s), } } |