diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-02-02 12:41:27 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-07-14 13:49:49 +0000 |
commit | 0d34f3075ff5807cb58e2e1a28a338aadeb9177c (patch) | |
tree | eebb5bebd19a9fa267d1ac7b5d3b18218fe68495 /nitrocli/src/commands.rs | |
parent | e9b6b2e4cdbd991645fb088974b66f44dc766bdc (diff) | |
download | nitrocli-0d34f3075ff5807cb58e2e1a28a338aadeb9177c.tar.gz nitrocli-0d34f3075ff5807cb58e2e1a28a338aadeb9177c.tar.bz2 |
Unwrap results in print_status
Since nitrokey 0.4.0, all functions that interact with the device return
a Result, so we have to unwrap the results in the print_status function.
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r-- | nitrocli/src/commands.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index 808db79..51b37ca 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -336,9 +336,9 @@ fn print_status( admin retry count: {arc}"#, model = model, id = serial_number, - fwv = device.get_firmware_version(), - urc = device.get_user_retry_count(), - arc = device.get_admin_retry_count(), + fwv = device.get_firmware_version()?, + urc = device.get_user_retry_count()?, + arc = device.get_admin_retry_count()?, )?; if let nitrokey::DeviceWrapper::Storage(device) = device { |