From d9adac05dfa5de83465fde3479df4fd898ebd8bd Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 5 Jan 2019 16:04:49 -0800 Subject: Update nitrokey crate to 0.3.0 This change updates the nitrokey crate to version 0.3.0. Import subrepo nitrokey/:nitrokey at 3593df8844b80741e2d33c8e5af80e65760dc058 --- nitrocli/src/commands.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nitrocli/src/commands.rs') diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index e125f17..ac2bbf1 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -411,10 +411,13 @@ pub fn otp_get( let device = get_device(ctx)?; if algorithm == args::OtpAlgorithm::Totp { device - .set_time(match time { - Some(time) => time, - None => get_unix_timestamp()?, - }) + .set_time( + match time { + Some(time) => time, + None => get_unix_timestamp()?, + }, + true, + ) .map_err(|err| get_error("Could not set time", err))?; } let config = device -- cgit v1.2.3