summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-07-07 20:40:20 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-07 22:40:50 +0200
commit34f7022ce078dc132734873a3efdefe3d6d4399a (patch)
tree9ba5c70900be453976b4726aed996b9cc278804d
parent50390554438d19e046ae19a282612f4db6a355e3 (diff)
downloadnitrokey-rs-34f7022ce078dc132734873a3efdefe3d6d4399a.tar.gz
nitrokey-rs-34f7022ce078dc132734873a3efdefe3d6d4399a.tar.bz2
Fix formatting error in device.rs
-rw-r--r--src/device.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/device.rs b/src/device.rs
index 6597ba9..51551c2 100644
--- a/src/device.rs
+++ b/src/device.rs
@@ -399,10 +399,7 @@ pub trait Device: Authenticate + GetPasswordSafe + GenerateOtp + fmt::Debug {
fn get_firmware_version(&self) -> Result<FirmwareVersion, Error> {
let major = result_or_error(unsafe { nitrokey_sys::NK_get_major_firmware_version() })?;
let minor = result_or_error(unsafe { nitrokey_sys::NK_get_minor_firmware_version() })?;
- Ok(FirmwareVersion {
- major,
- minor,
- })
+ Ok(FirmwareVersion { major, minor })
}
/// Returns the current configuration of the Nitrokey device.