summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-06 15:17:52 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-06 15:17:52 +0200
commit720b5fef6d9777d568d9921cc0c4b1c617025384 (patch)
tree2767eb8e0ebd57ce66cc34f4a6fe9bd829adc170 /src/tests
parent017a27a009947d73c00f934a1e052b0ef021680b (diff)
downloadnitrokey-rs-720b5fef6d9777d568d9921cc0c4b1c617025384.tar.gz
nitrokey-rs-720b5fef6d9777d568d9921cc0c4b1c617025384.tar.bz2
Fix formatting in OTP test case
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/otp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/otp.rs b/src/tests/otp.rs
index 46843c8..ea41e68 100644
--- a/src/tests/otp.rs
+++ b/src/tests/otp.rs
@@ -133,7 +133,10 @@ fn hotp_erase() {
fn configure_totp(admin: &ConfigureOtp, factor: u64) {
let slot_data = OtpSlotData::new(1, "test-totp", TOTP_SECRET, OtpMode::EightDigits);
let time_window = 30u64.checked_mul(factor).unwrap();
- assert_eq!(CommandStatus::Success, admin.write_totp_slot(slot_data, time_window as u16));
+ assert_eq!(
+ CommandStatus::Success,
+ admin.write_totp_slot(slot_data, time_window as u16)
+ );
}
fn check_totp_codes(device: &GenerateOtp, factor: u64) {