From bdb5ba7157ad93461bb1deea4b232178d16ef4c9 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 31 May 2018 11:39:13 +0200 Subject: Fix formatting issues --- src/tests/otp.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/tests/otp.rs') diff --git a/src/tests/otp.rs b/src/tests/otp.rs index de3b646..44689be 100644 --- a/src/tests/otp.rs +++ b/src/tests/otp.rs @@ -1,7 +1,7 @@ use std::ops::Deref; +use tests::util::{Target, ADMIN_PASSWORD, USER_PASSWORD}; use {Admin, Authenticate, CommandError, CommandStatus, Config, ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; -use tests::util::{Target, ADMIN_PASSWORD, USER_PASSWORD}; // test suite according to RFC 4226, Appendix D static HOTP_SECRET: &str = "3132333435363738393031323334353637383930"; @@ -30,7 +30,10 @@ fn get_admin_test_device() -> Admin { fn configure_hotp(admin: &ConfigureOtp, counter: u8) { let slot_data = OtpSlotData::new(1, "test-hotp", HOTP_SECRET, OtpMode::SixDigits); - assert_eq!(CommandStatus::Success, admin.write_hotp_slot(slot_data, counter.into())); + assert_eq!( + CommandStatus::Success, + admin.write_hotp_slot(slot_data, counter.into()) + ); } fn check_hotp_codes(device: &GenerateOtp, offset: u8) { -- cgit v1.2.1