diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 12:45:39 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-30 12:45:39 +0100 |
commit | 4c443110f8e10de905a48b0af1ef15fcd5a10b75 (patch) | |
tree | 36b16e3530ee5bf3a37fd20d6f823a9b7e5e3ef6 /src | |
parent | 1c6b4d4dfd498c4127a076c48b6c37e05eaacb62 (diff) | |
download | nitrokey-rs-4c443110f8e10de905a48b0af1ef15fcd5a10b75.tar.gz nitrokey-rs-4c443110f8e10de905a48b0af1ef15fcd5a10b75.tar.bz2 |
Fix get_model implementation for Storage
Diffstat (limited to 'src')
-rw-r--r-- | src/device.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.rs b/src/device.rs index 5dc6724..9c6608d 100644 --- a/src/device.rs +++ b/src/device.rs @@ -233,6 +233,7 @@ pub trait Device: Authenticate + GetPasswordSafe + GenerateOtp { /// # Example /// /// ```no_run + /// use nitrokey::Device; /// # use nitrokey::CommandError; /// /// # fn try_main() -> Result<(), CommandError> { @@ -787,7 +788,7 @@ impl Drop for Storage { impl Device for Storage { fn get_model(&self) -> Model { - Model::Pro + Model::Storage } } |