summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-30 12:45:39 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-30 12:45:39 +0100
commit4c443110f8e10de905a48b0af1ef15fcd5a10b75 (patch)
tree36b16e3530ee5bf3a37fd20d6f823a9b7e5e3ef6
parent1c6b4d4dfd498c4127a076c48b6c37e05eaacb62 (diff)
downloadnitrokey-rs-4c443110f8e10de905a48b0af1ef15fcd5a10b75.tar.gz
nitrokey-rs-4c443110f8e10de905a48b0af1ef15fcd5a10b75.tar.bz2
Fix get_model implementation for Storage
-rw-r--r--src/device.rs3
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
}
}