From 83063599f4ab1bcbbd9be9166e738a13ae4e4cc6 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 5 Jan 2019 09:52:29 +0000 Subject: Fix example for GenerateOtp::get_totp_code --- tests/otp.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/otp.rs b/tests/otp.rs index 8124c76..2b46088 100644 --- a/tests/otp.rs +++ b/tests/otp.rs @@ -63,7 +63,10 @@ fn check_hotp_codes(device: &GenerateOtp, offset: u8) { fn set_time(device: DeviceWrapper) { assert_eq!(Ok(()), device.set_time(1546385382, true)); assert_eq!(Ok(()), device.set_time(1546385392, false)); - assert_eq!(Err(CommandError::Timestamp), device.set_time(1546385292, false)); + assert_eq!( + Err(CommandError::Timestamp), + device.set_time(1546385292, false) + ); assert_eq!(Ok(()), device.set_time(1546385382, true)); } -- cgit v1.2.3