From 0d34f3075ff5807cb58e2e1a28a338aadeb9177c Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 2 Feb 2019 12:41:27 +0000 Subject: 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. --- nitrocli/src/commands.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nitrocli/src') 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 { -- cgit v1.2.1