From 4c443110f8e10de905a48b0af1ef15fcd5a10b75 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 30 Dec 2018 12:45:39 +0100 Subject: Fix get_model implementation for Storage --- src/device.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 } } -- cgit v1.2.3